fix test case

This commit is contained in:
afc163 2017-02-26 00:23:46 +08:00
parent a5f136f334
commit cf4ad5ddb8
2 changed files with 106 additions and 53 deletions

View File

@ -14,7 +14,8 @@ exports[`test renders ./components/form/demo/advanced-search.md correctly 1`] =
class="ant-col-5 ant-form-item-label"> class="ant-col-5 ant-form-item-label">
<label <label
class="" class=""
for="field-0"> for="field-0"
title="Field 0">
Field 0 Field 0
</label> </label>
</div> </div>
@ -42,7 +43,8 @@ exports[`test renders ./components/form/demo/advanced-search.md correctly 1`] =
class="ant-col-5 ant-form-item-label"> class="ant-col-5 ant-form-item-label">
<label <label
class="" class=""
for="field-1"> for="field-1"
title="Field 1">
Field 1 Field 1
</label> </label>
</div> </div>
@ -70,7 +72,8 @@ exports[`test renders ./components/form/demo/advanced-search.md correctly 1`] =
class="ant-col-5 ant-form-item-label"> class="ant-col-5 ant-form-item-label">
<label <label
class="" class=""
for="field-2"> for="field-2"
title="Field 2">
Field 2 Field 2
</label> </label>
</div> </div>
@ -98,7 +101,8 @@ exports[`test renders ./components/form/demo/advanced-search.md correctly 1`] =
class="ant-col-5 ant-form-item-label"> class="ant-col-5 ant-form-item-label">
<label <label
class="" class=""
for="field-3"> for="field-3"
title="Field 3">
Field 3 Field 3
</label> </label>
</div> </div>
@ -126,7 +130,8 @@ exports[`test renders ./components/form/demo/advanced-search.md correctly 1`] =
class="ant-col-5 ant-form-item-label"> class="ant-col-5 ant-form-item-label">
<label <label
class="" class=""
for="field-4"> for="field-4"
title="Field 4">
Field 4 Field 4
</label> </label>
</div> </div>
@ -154,7 +159,8 @@ exports[`test renders ./components/form/demo/advanced-search.md correctly 1`] =
class="ant-col-5 ant-form-item-label"> class="ant-col-5 ant-form-item-label">
<label <label
class="" class=""
for="field-5"> for="field-5"
title="Field 5">
Field 5 Field 5
</label> </label>
</div> </div>
@ -219,7 +225,8 @@ exports[`test renders ./components/form/demo/coordinated.md correctly 1`] = `
class="ant-col-4 ant-form-item-label"> class="ant-col-4 ant-form-item-label">
<label <label
class="ant-form-item-required" class="ant-form-item-required"
for="note"> for="note"
title="Note">
Note Note
</label> </label>
</div> </div>
@ -242,7 +249,8 @@ exports[`test renders ./components/form/demo/coordinated.md correctly 1`] = `
class="ant-col-4 ant-form-item-label"> class="ant-col-4 ant-form-item-label">
<label <label
class="ant-form-item-required" class="ant-form-item-required"
for="gender"> for="gender"
title="Gender">
Gender Gender
</label> </label>
</div> </div>
@ -308,7 +316,8 @@ exports[`test renders ./components/form/demo/customized-form-controls.md correct
class="ant-form-item-label"> class="ant-form-item-label">
<label <label
class="" class=""
for="price"> for="price"
title="Price">
Price Price
</label> </label>
</div> </div>
@ -436,7 +445,8 @@ exports[`test renders ./components/form/demo/global-state.md correctly 1`] = `
class="ant-form-item-label"> class="ant-form-item-label">
<label <label
class="ant-form-item-required" class="ant-form-item-required"
for="username"> for="username"
title="Username">
Username Username
</label> </label>
</div> </div>
@ -544,7 +554,8 @@ exports[`test renders ./components/form/demo/layout.md correctly 1`] = `
<div <div
class="ant-col-4 ant-form-item-label"> class="ant-col-4 ant-form-item-label">
<label <label
class=""> class=""
title="Form Layout">
Form Layout Form Layout
</label> </label>
</div> </div>
@ -606,7 +617,8 @@ exports[`test renders ./components/form/demo/layout.md correctly 1`] = `
<div <div
class="ant-col-4 ant-form-item-label"> class="ant-col-4 ant-form-item-label">
<label <label
class=""> class=""
title="Field A">
Field A Field A
</label> </label>
</div> </div>
@ -626,7 +638,8 @@ exports[`test renders ./components/form/demo/layout.md correctly 1`] = `
<div <div
class="ant-col-4 ant-form-item-label"> class="ant-col-4 ant-form-item-label">
<label <label
class=""> class=""
title="Field B">
Field B Field B
</label> </label>
</div> </div>
@ -763,7 +776,8 @@ exports[`test renders ./components/form/demo/register.md correctly 1`] = `
class="ant-col-6 ant-form-item-label"> class="ant-col-6 ant-form-item-label">
<label <label
class="ant-form-item-required" class="ant-form-item-required"
for="email"> for="email"
title="E-mail">
E-mail E-mail
</label> </label>
</div> </div>
@ -786,7 +800,8 @@ exports[`test renders ./components/form/demo/register.md correctly 1`] = `
class="ant-col-6 ant-form-item-label"> class="ant-col-6 ant-form-item-label">
<label <label
class="ant-form-item-required" class="ant-form-item-required"
for="password"> for="password"
title="Password">
Password Password
</label> </label>
</div> </div>
@ -809,7 +824,8 @@ exports[`test renders ./components/form/demo/register.md correctly 1`] = `
class="ant-col-6 ant-form-item-label"> class="ant-col-6 ant-form-item-label">
<label <label
class="ant-form-item-required" class="ant-form-item-required"
for="confirm"> for="confirm"
title="Confirm Password">
Confirm Password Confirm Password
</label> </label>
</div> </div>
@ -832,7 +848,8 @@ exports[`test renders ./components/form/demo/register.md correctly 1`] = `
class="ant-col-6 ant-form-item-label"> class="ant-col-6 ant-form-item-label">
<label <label
class="ant-form-item-required" class="ant-form-item-required"
for="nickname"> for="nickname"
title="">
<span> <span>
Nickname  Nickname 
<i <i
@ -859,7 +876,8 @@ exports[`test renders ./components/form/demo/register.md correctly 1`] = `
class="ant-col-6 ant-form-item-label"> class="ant-col-6 ant-form-item-label">
<label <label
class="ant-form-item-required" class="ant-form-item-required"
for="residence"> for="residence"
title="Habitual Residence">
Habitual Residence Habitual Residence
</label> </label>
</div> </div>
@ -896,7 +914,8 @@ exports[`test renders ./components/form/demo/register.md correctly 1`] = `
class="ant-col-6 ant-form-item-label"> class="ant-col-6 ant-form-item-label">
<label <label
class="ant-form-item-required" class="ant-form-item-required"
for="phone"> for="phone"
title="Phone Number">
Phone Number Phone Number
</label> </label>
</div> </div>
@ -952,7 +971,8 @@ exports[`test renders ./components/form/demo/register.md correctly 1`] = `
class="ant-col-6 ant-form-item-label"> class="ant-col-6 ant-form-item-label">
<label <label
class="ant-form-item-required" class="ant-form-item-required"
for="captcha"> for="captcha"
title="Captcha">
Captcha Captcha
</label> </label>
</div> </div>
@ -1047,7 +1067,8 @@ exports[`test renders ./components/form/demo/time-related-controls.md correctly
class="ant-col-8 ant-form-item-label"> class="ant-col-8 ant-form-item-label">
<label <label
class="ant-form-item-required" class="ant-form-item-required"
for="date-picker"> for="date-picker"
title="DatePicker">
DatePicker DatePicker
</label> </label>
</div> </div>
@ -1076,7 +1097,8 @@ exports[`test renders ./components/form/demo/time-related-controls.md correctly
class="ant-col-8 ant-form-item-label"> class="ant-col-8 ant-form-item-label">
<label <label
class="ant-form-item-required" class="ant-form-item-required"
for="date-time-picker"> for="date-time-picker"
title="DatePicker[showTime]">
DatePicker[showTime] DatePicker[showTime]
</label> </label>
</div> </div>
@ -1106,7 +1128,8 @@ exports[`test renders ./components/form/demo/time-related-controls.md correctly
class="ant-col-8 ant-form-item-label"> class="ant-col-8 ant-form-item-label">
<label <label
class="ant-form-item-required" class="ant-form-item-required"
for="month-picker"> for="month-picker"
title="MonthPicker">
MonthPicker MonthPicker
</label> </label>
</div> </div>
@ -1135,7 +1158,8 @@ exports[`test renders ./components/form/demo/time-related-controls.md correctly
class="ant-col-8 ant-form-item-label"> class="ant-col-8 ant-form-item-label">
<label <label
class="ant-form-item-required" class="ant-form-item-required"
for="range-picker"> for="range-picker"
title="RangePicker">
RangePicker RangePicker
</label> </label>
</div> </div>
@ -1174,7 +1198,8 @@ exports[`test renders ./components/form/demo/time-related-controls.md correctly
class="ant-col-8 ant-form-item-label"> class="ant-col-8 ant-form-item-label">
<label <label
class="ant-form-item-required" class="ant-form-item-required"
for="range-time-picker"> for="range-time-picker"
title="RangePicker[showTime]">
RangePicker[showTime] RangePicker[showTime]
</label> </label>
</div> </div>
@ -1214,7 +1239,8 @@ exports[`test renders ./components/form/demo/time-related-controls.md correctly
class="ant-col-8 ant-form-item-label"> class="ant-col-8 ant-form-item-label">
<label <label
class="ant-form-item-required" class="ant-form-item-required"
for="time-picker"> for="time-picker"
title="TimePicker">
TimePicker TimePicker
</label> </label>
</div> </div>
@ -1263,7 +1289,8 @@ exports[`test renders ./components/form/demo/validate-other.md correctly 1`] = `
<div <div
class="ant-col-6 ant-form-item-label"> class="ant-col-6 ant-form-item-label">
<label <label
class=""> class=""
title="Nation">
Nation Nation
</label> </label>
</div> </div>
@ -1284,7 +1311,8 @@ exports[`test renders ./components/form/demo/validate-other.md correctly 1`] = `
class="ant-col-6 ant-form-item-label"> class="ant-col-6 ant-form-item-label">
<label <label
class="ant-form-item-required" class="ant-form-item-required"
for="select"> for="select"
title="Select">
Select Select
</label> </label>
</div> </div>
@ -1328,7 +1356,8 @@ exports[`test renders ./components/form/demo/validate-other.md correctly 1`] = `
class="ant-col-6 ant-form-item-label"> class="ant-col-6 ant-form-item-label">
<label <label
class="ant-form-item-required" class="ant-form-item-required"
for="select-multiple"> for="select-multiple"
title="Select[multiple]">
Select[multiple] Select[multiple]
</label> </label>
</div> </div>
@ -1378,7 +1407,8 @@ exports[`test renders ./components/form/demo/validate-other.md correctly 1`] = `
class="ant-col-6 ant-form-item-label"> class="ant-col-6 ant-form-item-label">
<label <label
class="" class=""
for="input-number"> for="input-number"
title="InputNumber">
InputNumber InputNumber
</label> </label>
</div> </div>
@ -1428,7 +1458,8 @@ exports[`test renders ./components/form/demo/validate-other.md correctly 1`] = `
class="ant-col-6 ant-form-item-label"> class="ant-col-6 ant-form-item-label">
<label <label
class="" class=""
for="switch"> for="switch"
title="Switch">
Switch Switch
</label> </label>
</div> </div>
@ -1453,7 +1484,8 @@ exports[`test renders ./components/form/demo/validate-other.md correctly 1`] = `
class="ant-col-6 ant-form-item-label"> class="ant-col-6 ant-form-item-label">
<label <label
class="" class=""
for="slider"> for="slider"
title="Slider">
Slider Slider
</label> </label>
</div> </div>
@ -1535,7 +1567,8 @@ exports[`test renders ./components/form/demo/validate-other.md correctly 1`] = `
class="ant-col-6 ant-form-item-label"> class="ant-col-6 ant-form-item-label">
<label <label
class="" class=""
for="radio-group"> for="radio-group"
title="Radio.Group">
Radio.Group Radio.Group
</label> </label>
</div> </div>
@ -1597,7 +1630,8 @@ exports[`test renders ./components/form/demo/validate-other.md correctly 1`] = `
class="ant-col-6 ant-form-item-label"> class="ant-col-6 ant-form-item-label">
<label <label
class="" class=""
for="radio-button"> for="radio-button"
title="Radio.Button">
Radio.Button Radio.Button
</label> </label>
</div> </div>
@ -1659,7 +1693,8 @@ exports[`test renders ./components/form/demo/validate-other.md correctly 1`] = `
class="ant-col-6 ant-form-item-label"> class="ant-col-6 ant-form-item-label">
<label <label
class="" class=""
for="upload"> for="upload"
title="Upload">
Upload Upload
</label> </label>
</div> </div>
@ -1709,7 +1744,8 @@ exports[`test renders ./components/form/demo/validate-static.md correctly 1`] =
<div <div
class="ant-col-5 ant-form-item-label"> class="ant-col-5 ant-form-item-label">
<label <label
class=""> class=""
title="Fail">
Fail Fail
</label> </label>
</div> </div>
@ -1734,7 +1770,8 @@ exports[`test renders ./components/form/demo/validate-static.md correctly 1`] =
<div <div
class="ant-col-5 ant-form-item-label"> class="ant-col-5 ant-form-item-label">
<label <label
class=""> class=""
title="Warning">
Warning Warning
</label> </label>
</div> </div>
@ -1755,7 +1792,8 @@ exports[`test renders ./components/form/demo/validate-static.md correctly 1`] =
<div <div
class="ant-col-5 ant-form-item-label"> class="ant-col-5 ant-form-item-label">
<label <label
class=""> class=""
title="Validating">
Validating Validating
</label> </label>
</div> </div>
@ -1780,7 +1818,8 @@ exports[`test renders ./components/form/demo/validate-static.md correctly 1`] =
<div <div
class="ant-col-5 ant-form-item-label"> class="ant-col-5 ant-form-item-label">
<label <label
class=""> class=""
title="Success">
Success Success
</label> </label>
</div> </div>
@ -1801,7 +1840,8 @@ exports[`test renders ./components/form/demo/validate-static.md correctly 1`] =
<div <div
class="ant-col-5 ant-form-item-label"> class="ant-col-5 ant-form-item-label">
<label <label
class=""> class=""
title="Warning">
Warning Warning
</label> </label>
</div> </div>
@ -1822,7 +1862,8 @@ exports[`test renders ./components/form/demo/validate-static.md correctly 1`] =
<div <div
class="ant-col-5 ant-form-item-label"> class="ant-col-5 ant-form-item-label">
<label <label
class=""> class=""
title="Fail">
Fail Fail
</label> </label>
</div> </div>
@ -1847,7 +1888,8 @@ exports[`test renders ./components/form/demo/validate-static.md correctly 1`] =
<div <div
class="ant-col-5 ant-form-item-label"> class="ant-col-5 ant-form-item-label">
<label <label
class=""> class=""
title="inline">
inline inline
</label> </label>
</div> </div>
@ -1930,7 +1972,8 @@ exports[`test renders ./components/form/demo/without-form-create.md correctly 1`
<div <div
class="ant-col-7 ant-form-item-label"> class="ant-col-7 ant-form-item-label">
<label <label
class=""> class=""
title="Prime between 8 & 12">
Prime between 8 & 12 Prime between 8 & 12
</label> </label>
</div> </div>

View File

@ -819,7 +819,8 @@ exports[`test renders ./components/table/demo/dynamic-settings.md correctly 1`]
<div <div
class="ant-form-item-label"> class="ant-form-item-label">
<label <label
class=""> class=""
title="Bordered">
Bordered Bordered
</label> </label>
</div> </div>
@ -841,7 +842,8 @@ exports[`test renders ./components/table/demo/dynamic-settings.md correctly 1`]
<div <div
class="ant-form-item-label"> class="ant-form-item-label">
<label <label
class=""> class=""
title="loading">
loading loading
</label> </label>
</div> </div>
@ -863,7 +865,8 @@ exports[`test renders ./components/table/demo/dynamic-settings.md correctly 1`]
<div <div
class="ant-form-item-label"> class="ant-form-item-label">
<label <label
class=""> class=""
title="Pagination">
Pagination Pagination
</label> </label>
</div> </div>
@ -886,7 +889,8 @@ exports[`test renders ./components/table/demo/dynamic-settings.md correctly 1`]
<div <div
class="ant-form-item-label"> class="ant-form-item-label">
<label <label
class=""> class=""
title="Title">
Title Title
</label> </label>
</div> </div>
@ -909,7 +913,8 @@ exports[`test renders ./components/table/demo/dynamic-settings.md correctly 1`]
<div <div
class="ant-form-item-label"> class="ant-form-item-label">
<label <label
class=""> class=""
title="Column Header">
Column Header Column Header
</label> </label>
</div> </div>
@ -932,7 +937,8 @@ exports[`test renders ./components/table/demo/dynamic-settings.md correctly 1`]
<div <div
class="ant-form-item-label"> class="ant-form-item-label">
<label <label
class=""> class=""
title="Footer">
Footer Footer
</label> </label>
</div> </div>
@ -955,7 +961,8 @@ exports[`test renders ./components/table/demo/dynamic-settings.md correctly 1`]
<div <div
class="ant-form-item-label"> class="ant-form-item-label">
<label <label
class=""> class=""
title="Expandable">
Expandable Expandable
</label> </label>
</div> </div>
@ -978,7 +985,8 @@ exports[`test renders ./components/table/demo/dynamic-settings.md correctly 1`]
<div <div
class="ant-form-item-label"> class="ant-form-item-label">
<label <label
class=""> class=""
title="Checkbox">
Checkbox Checkbox
</label> </label>
</div> </div>
@ -1001,7 +1009,8 @@ exports[`test renders ./components/table/demo/dynamic-settings.md correctly 1`]
<div <div
class="ant-form-item-label"> class="ant-form-item-label">
<label <label
class=""> class=""
title="Fixed Header">
Fixed Header Fixed Header
</label> </label>
</div> </div>
@ -1023,7 +1032,8 @@ exports[`test renders ./components/table/demo/dynamic-settings.md correctly 1`]
<div <div
class="ant-form-item-label"> class="ant-form-item-label">
<label <label
class=""> class=""
title="Size">
Size Size
</label> </label>
</div> </div>