ant-design/components/radio/__tests__/__snapshots__/demo.test.js.snap

585 lines
13 KiB
Plaintext
Raw Normal View History

2016-11-22 14:28:05 +08:00
exports[`test renders ./components/radio/demo/basic.md correctly 1`] = `
<label
2017-03-15 14:25:43 +08:00
class="ant-radio-wrapper">
2016-11-22 14:28:05 +08:00
<span
class="ant-radio">
<input
class="ant-radio-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Radio
</span>
</label>
`;
exports[`test renders ./components/radio/demo/disable.md correctly 1`] = `
<div>
<label
class="ant-radio-wrapper ant-radio-wrapper-disabled">
<span
2017-02-28 16:14:41 +08:00
class="ant-radio ant-radio-disabled">
2016-11-22 14:28:05 +08:00
<input
class="ant-radio-input"
disabled=""
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Disabled
</span>
</label>
<br />
<label
class="ant-radio-wrapper ant-radio-wrapper-disabled">
<span
2017-02-28 16:14:41 +08:00
class="ant-radio ant-radio-checked ant-radio-disabled">
2016-11-22 14:28:05 +08:00
<input
checked=""
class="ant-radio-input"
disabled=""
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Disabled
</span>
</label>
<div
style="margin-top:20px;">
<button
class="ant-btn ant-btn-primary"
type="button">
<span>
Toggle disabled
</span>
</button>
</div>
</div>
`;
exports[`test renders ./components/radio/demo/radiobutton.md correctly 1`] = `
<div>
<div>
<div
class="ant-radio-group">
<label
class="ant-radio-button-wrapper ant-radio-button-wrapper-checked">
<span
2017-02-28 16:14:41 +08:00
class="ant-radio-button ant-radio-button-checked">
2016-11-22 14:28:05 +08:00
<input
checked=""
class="ant-radio-button-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Hangzhou
</span>
</label>
<label
class="ant-radio-button-wrapper">
<span
class="ant-radio-button">
<input
class="ant-radio-button-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Shanghai
</span>
</label>
<label
class="ant-radio-button-wrapper">
<span
class="ant-radio-button">
<input
class="ant-radio-button-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Beijing
</span>
</label>
<label
class="ant-radio-button-wrapper">
<span
class="ant-radio-button">
<input
class="ant-radio-button-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Chengdu
</span>
</label>
</div>
</div>
<div
style="margin-top:16px;">
<div
class="ant-radio-group">
<label
class="ant-radio-button-wrapper ant-radio-button-wrapper-checked">
<span
2017-02-28 16:14:41 +08:00
class="ant-radio-button ant-radio-button-checked">
2016-11-22 14:28:05 +08:00
<input
checked=""
class="ant-radio-button-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Hangzhou
</span>
</label>
<label
class="ant-radio-button-wrapper ant-radio-button-wrapper-disabled">
<span
2017-02-28 16:14:41 +08:00
class="ant-radio-button ant-radio-button-disabled">
2016-11-22 14:28:05 +08:00
<input
class="ant-radio-button-input"
disabled=""
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Shanghai
</span>
</label>
<label
class="ant-radio-button-wrapper">
<span
class="ant-radio-button">
<input
class="ant-radio-button-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Beijing
</span>
</label>
<label
class="ant-radio-button-wrapper">
<span
class="ant-radio-button">
<input
class="ant-radio-button-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Chengdu
</span>
</label>
</div>
</div>
<div
style="margin-top:16px;">
<div
class="ant-radio-group">
<label
class="ant-radio-button-wrapper ant-radio-button-wrapper-checked ant-radio-button-wrapper-disabled">
<span
2017-02-28 16:14:41 +08:00
class="ant-radio-button ant-radio-button-checked ant-radio-button-disabled">
2016-11-22 14:28:05 +08:00
<input
checked=""
class="ant-radio-button-input"
disabled=""
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Hangzhou
</span>
</label>
<label
class="ant-radio-button-wrapper ant-radio-button-wrapper-disabled">
<span
2017-02-28 16:14:41 +08:00
class="ant-radio-button ant-radio-button-disabled">
2016-11-22 14:28:05 +08:00
<input
class="ant-radio-button-input"
disabled=""
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Shanghai
</span>
</label>
<label
class="ant-radio-button-wrapper ant-radio-button-wrapper-disabled">
<span
2017-02-28 16:14:41 +08:00
class="ant-radio-button ant-radio-button-disabled">
2016-11-22 14:28:05 +08:00
<input
class="ant-radio-button-input"
disabled=""
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Beijing
</span>
</label>
<label
class="ant-radio-button-wrapper ant-radio-button-wrapper-disabled">
<span
2017-02-28 16:14:41 +08:00
class="ant-radio-button ant-radio-button-disabled">
2016-11-22 14:28:05 +08:00
<input
class="ant-radio-button-input"
disabled=""
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Chengdu
</span>
</label>
</div>
</div>
</div>
`;
exports[`test renders ./components/radio/demo/radiogroup.md correctly 1`] = `
<div
class="ant-radio-group">
<label
class="ant-radio-wrapper ant-radio-wrapper-checked">
<span
2017-02-28 16:14:41 +08:00
class="ant-radio ant-radio-checked">
2016-11-22 14:28:05 +08:00
<input
checked=""
class="ant-radio-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
A
</span>
</label>
<label
class="ant-radio-wrapper">
<span
class="ant-radio">
<input
class="ant-radio-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
B
</span>
</label>
<label
class="ant-radio-wrapper">
<span
class="ant-radio">
<input
class="ant-radio-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
C
</span>
</label>
<label
class="ant-radio-wrapper">
<span
class="ant-radio">
<input
class="ant-radio-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
D
</span>
</label>
</div>
`;
exports[`test renders ./components/radio/demo/radiogroup-more.md correctly 1`] = `
<div
class="ant-radio-group">
<label
class="ant-radio-wrapper ant-radio-wrapper-checked"
style="display:block;height:30px;line-height:30px;">
<span
2017-02-28 16:14:41 +08:00
class="ant-radio ant-radio-checked">
2016-11-22 14:28:05 +08:00
<input
checked=""
class="ant-radio-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Option A
</span>
</label>
<label
class="ant-radio-wrapper"
style="display:block;height:30px;line-height:30px;">
<span
class="ant-radio">
<input
class="ant-radio-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Option B
</span>
</label>
<label
class="ant-radio-wrapper"
style="display:block;height:30px;line-height:30px;">
<span
class="ant-radio">
<input
class="ant-radio-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Option C
</span>
</label>
<label
class="ant-radio-wrapper"
style="display:block;height:30px;line-height:30px;">
<span
class="ant-radio">
<input
class="ant-radio-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
More...
</span>
</label>
</div>
`;
exports[`test renders ./components/radio/demo/size.md correctly 1`] = `
<div>
<div>
<div
class="ant-radio-group ant-radio-group-large">
<label
class="ant-radio-button-wrapper ant-radio-button-wrapper-checked">
<span
2017-02-28 16:14:41 +08:00
class="ant-radio-button ant-radio-button-checked">
2016-11-22 14:28:05 +08:00
<input
checked=""
class="ant-radio-button-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Hangzhou
</span>
</label>
<label
class="ant-radio-button-wrapper">
<span
class="ant-radio-button">
<input
class="ant-radio-button-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Shanghai
</span>
</label>
<label
class="ant-radio-button-wrapper">
<span
class="ant-radio-button">
<input
class="ant-radio-button-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Beijing
</span>
</label>
<label
class="ant-radio-button-wrapper">
<span
class="ant-radio-button">
<input
class="ant-radio-button-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Chengdu
</span>
</label>
</div>
</div>
<div
style="margin-top:16px;">
<div
class="ant-radio-group">
<label
class="ant-radio-button-wrapper ant-radio-button-wrapper-checked">
<span
2017-02-28 16:14:41 +08:00
class="ant-radio-button ant-radio-button-checked">
2016-11-22 14:28:05 +08:00
<input
checked=""
class="ant-radio-button-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Hangzhou
</span>
</label>
<label
class="ant-radio-button-wrapper">
<span
class="ant-radio-button">
<input
class="ant-radio-button-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Shanghai
</span>
</label>
<label
class="ant-radio-button-wrapper">
<span
class="ant-radio-button">
<input
class="ant-radio-button-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Beijing
</span>
</label>
<label
class="ant-radio-button-wrapper">
<span
class="ant-radio-button">
<input
class="ant-radio-button-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Chengdu
</span>
</label>
</div>
</div>
<div
style="margin-top:16px;">
<div
class="ant-radio-group ant-radio-group-small">
<label
class="ant-radio-button-wrapper ant-radio-button-wrapper-checked">
<span
2017-02-28 16:14:41 +08:00
class="ant-radio-button ant-radio-button-checked">
2016-11-22 14:28:05 +08:00
<input
checked=""
class="ant-radio-button-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Hangzhou
</span>
</label>
<label
class="ant-radio-button-wrapper">
<span
class="ant-radio-button">
<input
class="ant-radio-button-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Shanghai
</span>
</label>
<label
class="ant-radio-button-wrapper">
<span
class="ant-radio-button">
<input
class="ant-radio-button-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Beijing
</span>
</label>
<label
class="ant-radio-button-wrapper">
<span
class="ant-radio-button">
<input
class="ant-radio-button-input"
type="radio" />
2017-02-28 16:14:41 +08:00
<span
class="ant-radio-button-inner" />
2016-11-22 14:28:05 +08:00
</span>
<span>
Chengdu
</span>
</label>
</div>
</div>
</div>
`;