Browse Source

update snapshots

pull/6686/head
afc163 8 years ago
parent
commit
7d3bc4ebd4
  1. 86
      components/layout/__tests__/__snapshots__/demo.test.js.snap
  2. 161
      components/menu/__tests__/__snapshots__/demo.test.js.snap

86
components/layout/__tests__/__snapshots__/demo.test.js.snap

@ -139,7 +139,7 @@ exports[`renders ./components/layout/demo/custom-trigger.md correctly 1`] = `
/> />
<ul <ul
aria-activedescendant="" aria-activedescendant=""
class="ant-menu ant-menu-inline ant-menu-dark ant-menu-root" class="ant-menu ant-menu-inline ant-menu-dark ant-menu-root"
role="menu" role="menu"
tabindex="0" tabindex="0"
> >
@ -152,9 +152,7 @@ exports[`renders ./components/layout/demo/custom-trigger.md correctly 1`] = `
<i <i
class="anticon anticon-user" class="anticon anticon-user"
/> />
<span <span>
class="nav-text"
>
nav 1 nav 1
</span> </span>
</li> </li>
@ -167,9 +165,7 @@ exports[`renders ./components/layout/demo/custom-trigger.md correctly 1`] = `
<i <i
class="anticon anticon-video-camera" class="anticon anticon-video-camera"
/> />
<span <span>
class="nav-text"
>
nav 2 nav 2
</span> </span>
</li> </li>
@ -182,9 +178,7 @@ exports[`renders ./components/layout/demo/custom-trigger.md correctly 1`] = `
<i <i
class="anticon anticon-upload" class="anticon anticon-upload"
/> />
<span <span>
class="nav-text"
>
nav 3 nav 3
</span> </span>
</li> </li>
@ -225,7 +219,7 @@ exports[`renders ./components/layout/demo/fixed.md correctly 1`] = `
/> />
<ul <ul
aria-activedescendant="" aria-activedescendant=""
class="ant-menu ant-menu-horizontal ant-menu-dark ant-menu-root" class="ant-menu ant-menu-horizontal ant-menu-dark ant-menu-root"
role="menu" role="menu"
style="line-height:64px;" style="line-height:64px;"
tabindex="0" tabindex="0"
@ -330,7 +324,7 @@ exports[`renders ./components/layout/demo/fixed-sider.md correctly 1`] = `
/> />
<ul <ul
aria-activedescendant="" aria-activedescendant=""
class="ant-menu ant-menu-inline ant-menu-dark ant-menu-root" class="ant-menu ant-menu-inline ant-menu-dark ant-menu-root"
role="menu" role="menu"
tabindex="0" tabindex="0"
> >
@ -594,7 +588,7 @@ exports[`renders ./components/layout/demo/responsive.md correctly 1`] = `
/> />
<ul <ul
aria-activedescendant="" aria-activedescendant=""
class="ant-menu ant-menu-inline ant-menu-dark ant-menu-root" class="ant-menu ant-menu-inline ant-menu-dark ant-menu-root"
role="menu" role="menu"
tabindex="0" tabindex="0"
> >
@ -704,10 +698,36 @@ exports[`renders ./components/layout/demo/side.md correctly 1`] = `
/> />
<ul <ul
aria-activedescendant="" aria-activedescendant=""
class="ant-menu ant-menu-inline ant-menu-dark ant-menu-root" class="ant-menu ant-menu-inline ant-menu-dark ant-menu-root"
role="menu" role="menu"
tabindex="0" tabindex="0"
> >
<li
aria-selected="true"
class="ant-menu-item-selected ant-menu-item"
role="menuitem"
style="padding-left:24px;"
>
<i
class="anticon anticon-pie-chart"
/>
<span>
Option 1
</span>
</li>
<li
aria-selected="false"
class="ant-menu-item"
role="menuitem"
style="padding-left:24px;"
>
<i
class="anticon anticon-desktop"
/>
<span>
Option 2
</span>
</li>
<li <li
class="ant-menu-submenu-inline ant-menu-submenu" class="ant-menu-submenu-inline ant-menu-submenu"
> >
@ -722,9 +742,7 @@ exports[`renders ./components/layout/demo/side.md correctly 1`] = `
<i <i
class="anticon anticon-user" class="anticon anticon-user"
/> />
<span <span>
class="nav-text"
>
User User
</span> </span>
</span> </span>
@ -744,29 +762,23 @@ exports[`renders ./components/layout/demo/side.md correctly 1`] = `
<i <i
class="anticon anticon-team" class="anticon anticon-team"
/> />
<span <span>
class="nav-text"
>
Team Team
</span> </span>
</span> </span>
</div> </div>
</li> </li>
<li <li
aria-selected="true" aria-selected="false"
class="ant-menu-item-selected ant-menu-item" class="ant-menu-item"
role="menuitem" role="menuitem"
style="padding-left:24px;" style="padding-left:24px;"
> >
<i
class="anticon anticon-file"
/>
<span> <span>
<i File
class="anticon anticon-file"
/>
<span
class="nav-text"
>
File
</span>
</span> </span>
</li> </li>
</ul> </ul>
@ -847,7 +859,7 @@ exports[`renders ./components/layout/demo/top.md correctly 1`] = `
/> />
<ul <ul
aria-activedescendant="" aria-activedescendant=""
class="ant-menu ant-menu-horizontal ant-menu-dark ant-menu-root" class="ant-menu ant-menu-horizontal ant-menu-dark ant-menu-root"
role="menu" role="menu"
style="line-height:64px;" style="line-height:64px;"
tabindex="0" tabindex="0"
@ -947,7 +959,7 @@ exports[`renders ./components/layout/demo/top-side.md correctly 1`] = `
/> />
<ul <ul
aria-activedescendant="" aria-activedescendant=""
class="ant-menu ant-menu-horizontal ant-menu-dark ant-menu-root" class="ant-menu ant-menu-horizontal ant-menu-dark ant-menu-root"
role="menu" role="menu"
style="line-height:64px;" style="line-height:64px;"
tabindex="0" tabindex="0"
@ -1033,13 +1045,13 @@ exports[`renders ./components/layout/demo/top-side.md correctly 1`] = `
> >
<ul <ul
aria-activedescendant="" aria-activedescendant=""
class="ant-menu ant-menu-inline ant-menu-light ant-menu-root" class="ant-menu ant-menu-inline ant-menu-light ant-menu-root"
role="menu" role="menu"
style="height:100%;" style="height:100%;"
tabindex="0" tabindex="0"
> >
<li <li
class="ant-menu-submenu-inline ant-menu-submenu-open ant-menu-submenu-selected ant-menu-submenu" class="ant-menu-submenu-inline ant-menu-submenu-open ant-menu-submenu"
> >
<div <div
aria-expanded="true" aria-expanded="true"
@ -1163,7 +1175,7 @@ exports[`renders ./components/layout/demo/top-side-2.md correctly 1`] = `
/> />
<ul <ul
aria-activedescendant="" aria-activedescendant=""
class="ant-menu ant-menu-horizontal ant-menu-dark ant-menu-root" class="ant-menu ant-menu-horizontal ant-menu-dark ant-menu-root"
role="menu" role="menu"
style="line-height:64px;" style="line-height:64px;"
tabindex="0" tabindex="0"
@ -1203,13 +1215,13 @@ exports[`renders ./components/layout/demo/top-side-2.md correctly 1`] = `
> >
<ul <ul
aria-activedescendant="" aria-activedescendant=""
class="ant-menu ant-menu-inline ant-menu-light ant-menu-root" class="ant-menu ant-menu-inline ant-menu-light ant-menu-root"
role="menu" role="menu"
style="height:100%;border-right:0;" style="height:100%;border-right:0;"
tabindex="0" tabindex="0"
> >
<li <li
class="ant-menu-submenu-inline ant-menu-submenu-open ant-menu-submenu-selected ant-menu-submenu" class="ant-menu-submenu-inline ant-menu-submenu-open ant-menu-submenu"
> >
<div <div
aria-expanded="true" aria-expanded="true"

161
components/menu/__tests__/__snapshots__/demo.test.js.snap

@ -3,7 +3,7 @@
exports[`renders ./components/menu/demo/horizontal.md correctly 1`] = ` exports[`renders ./components/menu/demo/horizontal.md correctly 1`] = `
<ul <ul
aria-activedescendant="" aria-activedescendant=""
class="ant-menu ant-menu-horizontal ant-menu-light ant-menu-root" class="ant-menu ant-menu-horizontal ant-menu-light ant-menu-root"
role="menu" role="menu"
tabindex="0" tabindex="0"
> >
@ -61,16 +61,16 @@ exports[`renders ./components/menu/demo/horizontal.md correctly 1`] = `
</ul> </ul>
`; `;
exports[`renders ./components/menu/demo/sider.md correctly 1`] = ` exports[`renders ./components/menu/demo/inline.md correctly 1`] = `
<ul <ul
aria-activedescendant="" aria-activedescendant=""
class="ant-menu ant-menu-inline ant-menu-light ant-menu-root" class="ant-menu ant-menu-inline ant-menu-light ant-menu-root"
role="menu" role="menu"
style="width:240px;" style="width:240px;"
tabindex="0" tabindex="0"
> >
<li <li
class="ant-menu-submenu-inline ant-menu-submenu-open ant-menu-submenu-selected ant-menu-submenu" class="ant-menu-submenu-inline ant-menu-submenu-open ant-menu-submenu"
> >
<div <div
aria-expanded="true" aria-expanded="true"
@ -197,16 +197,157 @@ exports[`renders ./components/menu/demo/sider.md correctly 1`] = `
</ul> </ul>
`; `;
exports[`renders ./components/menu/demo/inline-collapsed.md correctly 1`] = `
<div
style="width:240px;"
>
<button
class="ant-btn ant-btn-primary"
style="margin-bottom:16px;"
type="button"
>
<i
class="anticon anticon-menu-fold"
/>
</button>
<ul
aria-activedescendant=""
class="ant-menu ant-menu-inline ant-menu-dark ant-menu-root"
role="menu"
tabindex="0"
>
<li
aria-selected="true"
class="ant-menu-item-selected ant-menu-item"
role="menuitem"
style="padding-left:24px;"
>
<i
class="anticon anticon-pie-chart"
/>
<span>
Option 1
</span>
</li>
<li
aria-selected="false"
class="ant-menu-item"
role="menuitem"
style="padding-left:24px;"
>
<i
class="anticon anticon-desktop"
/>
<span>
Option 2
</span>
</li>
<li
aria-selected="false"
class="ant-menu-item"
role="menuitem"
style="padding-left:24px;"
>
<i
class="anticon anticon-inbox"
/>
<span>
Option 3
</span>
</li>
<li
class="ant-menu-submenu-inline ant-menu-submenu-open ant-menu-submenu"
>
<div
aria-expanded="true"
aria-haspopup="true"
aria-owns="sub1$Menu"
class="ant-menu-submenu-title"
style="padding-left:24px;"
>
<span>
<i
class="anticon anticon-mail"
/>
<span>
Navigation One
</span>
</span>
</div>
<ul
aria-activedescendant=""
class="ant-menu ant-menu-inline ant-menu-sub"
id="sub1$Menu"
role="menu"
>
<li
aria-selected="false"
class="ant-menu-item"
role="menuitem"
style="padding-left:48px;"
>
Option 5
</li>
<li
aria-selected="false"
class="ant-menu-item"
role="menuitem"
style="padding-left:48px;"
>
Option 6
</li>
<li
aria-selected="false"
class="ant-menu-item"
role="menuitem"
style="padding-left:48px;"
>
Option 7
</li>
<li
aria-selected="false"
class="ant-menu-item"
role="menuitem"
style="padding-left:48px;"
>
Option 8
</li>
</ul>
</li>
<li
class="ant-menu-submenu-inline ant-menu-submenu"
>
<div
aria-expanded="false"
aria-haspopup="true"
aria-owns="sub2$Menu"
class="ant-menu-submenu-title"
style="padding-left:24px;"
>
<span>
<i
class="anticon anticon-appstore"
/>
<span>
Navigation Two
</span>
</span>
</div>
</li>
</ul>
</div>
`;
exports[`renders ./components/menu/demo/sider-current.md correctly 1`] = ` exports[`renders ./components/menu/demo/sider-current.md correctly 1`] = `
<ul <ul
aria-activedescendant="" aria-activedescendant=""
class="ant-menu ant-menu-inline ant-menu-light ant-menu-root" class="ant-menu ant-menu-inline ant-menu-light ant-menu-root"
role="menu" role="menu"
style="width:240px;" style="width:240px;"
tabindex="0" tabindex="0"
> >
<li <li
class="ant-menu-submenu-inline ant-menu-submenu-selected ant-menu-submenu" class="ant-menu-submenu-inline ant-menu-submenu"
> >
<div <div
aria-expanded="false" aria-expanded="false"
@ -296,7 +437,7 @@ exports[`renders ./components/menu/demo/switch-mode.md correctly 1`] = `
<br /> <br />
<ul <ul
aria-activedescendant="" aria-activedescendant=""
class="ant-menu ant-menu-inline ant-menu-light ant-menu-root" class="ant-menu ant-menu-inline ant-menu-light ant-menu-root"
role="menu" role="menu"
style="width:240px;" style="width:240px;"
tabindex="0" tabindex="0"
@ -420,13 +561,13 @@ exports[`renders ./components/menu/demo/theme.md correctly 1`] = `
<br /> <br />
<ul <ul
aria-activedescendant="" aria-activedescendant=""
class="ant-menu ant-menu-inline ant-menu-dark ant-menu-root" class="ant-menu ant-menu-inline ant-menu-dark ant-menu-root"
role="menu" role="menu"
style="width:240px;" style="width:240px;"
tabindex="0" tabindex="0"
> >
<li <li
class="ant-menu-submenu-inline ant-menu-submenu-open ant-menu-submenu-selected ant-menu-submenu" class="ant-menu-submenu-inline ant-menu-submenu-open ant-menu-submenu"
> >
<div <div
aria-expanded="true" aria-expanded="true"
@ -531,7 +672,7 @@ exports[`renders ./components/menu/demo/theme.md correctly 1`] = `
exports[`renders ./components/menu/demo/vertical.md correctly 1`] = ` exports[`renders ./components/menu/demo/vertical.md correctly 1`] = `
<ul <ul
aria-activedescendant="" aria-activedescendant=""
class="ant-menu ant-menu-vertical ant-menu-light ant-menu-root" class="ant-menu ant-menu-vertical ant-menu-light ant-menu-root"
role="menu" role="menu"
style="width:240px;" style="width:240px;"
tabindex="0" tabindex="0"

Loading…
Cancel
Save