ant-design/components/rate/__tests__/__snapshots__/demo.test.js.snap
偏右 a80d6b7231 upgrade rc-rate to 2.x (#4955)
1. allow custom charactor
2. add className and onHoverChange

close #4870
2017-02-21 14:44:13 +08:00

482 lines
9.7 KiB
Plaintext

exports[`test renders ./components/rate/demo/basic.md correctly 1`] = `
<ul
class="ant-rate">
<li
class="ant-rate-star ant-rate-star-zero">
<div
class="ant-rate-star-first">
<i
class="anticon anticon-star" />
</div>
<div
class="ant-rate-star-second">
<i
class="anticon anticon-star" />
</div>
</li>
<li
class="ant-rate-star ant-rate-star-zero">
<div
class="ant-rate-star-first">
<i
class="anticon anticon-star" />
</div>
<div
class="ant-rate-star-second">
<i
class="anticon anticon-star" />
</div>
</li>
<li
class="ant-rate-star ant-rate-star-zero">
<div
class="ant-rate-star-first">
<i
class="anticon anticon-star" />
</div>
<div
class="ant-rate-star-second">
<i
class="anticon anticon-star" />
</div>
</li>
<li
class="ant-rate-star ant-rate-star-zero">
<div
class="ant-rate-star-first">
<i
class="anticon anticon-star" />
</div>
<div
class="ant-rate-star-second">
<i
class="anticon anticon-star" />
</div>
</li>
<li
class="ant-rate-star ant-rate-star-zero">
<div
class="ant-rate-star-first">
<i
class="anticon anticon-star" />
</div>
<div
class="ant-rate-star-second">
<i
class="anticon anticon-star" />
</div>
</li>
</ul>
`;
exports[`test renders ./components/rate/demo/charactor.md correctly 1`] = `
<div>
<ul
class="ant-rate">
<li
class="ant-rate-star ant-rate-star-zero">
<div
class="ant-rate-star-first">
<i
class="anticon anticon-heart" />
</div>
<div
class="ant-rate-star-second">
<i
class="anticon anticon-heart" />
</div>
</li>
<li
class="ant-rate-star ant-rate-star-zero">
<div
class="ant-rate-star-first">
<i
class="anticon anticon-heart" />
</div>
<div
class="ant-rate-star-second">
<i
class="anticon anticon-heart" />
</div>
</li>
<li
class="ant-rate-star ant-rate-star-zero">
<div
class="ant-rate-star-first">
<i
class="anticon anticon-heart" />
</div>
<div
class="ant-rate-star-second">
<i
class="anticon anticon-heart" />
</div>
</li>
<li
class="ant-rate-star ant-rate-star-zero">
<div
class="ant-rate-star-first">
<i
class="anticon anticon-heart" />
</div>
<div
class="ant-rate-star-second">
<i
class="anticon anticon-heart" />
</div>
</li>
<li
class="ant-rate-star ant-rate-star-zero">
<div
class="ant-rate-star-first">
<i
class="anticon anticon-heart" />
</div>
<div
class="ant-rate-star-second">
<i
class="anticon anticon-heart" />
</div>
</li>
</ul>
<br />
<ul
class="ant-rate"
style="font-size:36px;">
<li
class="ant-rate-star ant-rate-star-zero">
<div
class="ant-rate-star-first">
A
</div>
<div
class="ant-rate-star-second">
A
</div>
</li>
<li
class="ant-rate-star ant-rate-star-zero">
<div
class="ant-rate-star-first">
A
</div>
<div
class="ant-rate-star-second">
A
</div>
</li>
<li
class="ant-rate-star ant-rate-star-zero">
<div
class="ant-rate-star-first">
A
</div>
<div
class="ant-rate-star-second">
A
</div>
</li>
<li
class="ant-rate-star ant-rate-star-zero">
<div
class="ant-rate-star-first">
A
</div>
<div
class="ant-rate-star-second">
A
</div>
</li>
<li
class="ant-rate-star ant-rate-star-zero">
<div
class="ant-rate-star-first">
A
</div>
<div
class="ant-rate-star-second">
A
</div>
</li>
</ul>
<br />
<ul
class="ant-rate">
<li
class="ant-rate-star ant-rate-star-zero">
<div
class="ant-rate-star-first">
</div>
<div
class="ant-rate-star-second">
</div>
</li>
<li
class="ant-rate-star ant-rate-star-zero">
<div
class="ant-rate-star-first">
</div>
<div
class="ant-rate-star-second">
</div>
</li>
<li
class="ant-rate-star ant-rate-star-zero">
<div
class="ant-rate-star-first">
</div>
<div
class="ant-rate-star-second">
</div>
</li>
<li
class="ant-rate-star ant-rate-star-zero">
<div
class="ant-rate-star-first">
</div>
<div
class="ant-rate-star-second">
</div>
</li>
<li
class="ant-rate-star ant-rate-star-zero">
<div
class="ant-rate-star-first">
</div>
<div
class="ant-rate-star-second">
</div>
</li>
</ul>
</div>
`;
exports[`test renders ./components/rate/demo/disabled.md correctly 1`] = `
<ul
class="ant-rate ant-rate-disabled">
<li
class="ant-rate-star ant-rate-star-full">
<div
class="ant-rate-star-first">
<i
class="anticon anticon-star" />
</div>
<div
class="ant-rate-star-second">
<i
class="anticon anticon-star" />
</div>
</li>
<li
class="ant-rate-star ant-rate-star-full">
<div
class="ant-rate-star-first">
<i
class="anticon anticon-star" />
</div>
<div
class="ant-rate-star-second">
<i
class="anticon anticon-star" />
</div>
</li>
<li
class="ant-rate-star ant-rate-star-zero">
<div
class="ant-rate-star-first">
<i
class="anticon anticon-star" />
</div>
<div
class="ant-rate-star-second">
<i
class="anticon anticon-star" />
</div>
</li>
<li
class="ant-rate-star ant-rate-star-zero">
<div
class="ant-rate-star-first">
<i
class="anticon anticon-star" />
</div>
<div
class="ant-rate-star-second">
<i
class="anticon anticon-star" />
</div>
</li>
<li
class="ant-rate-star ant-rate-star-zero">
<div
class="ant-rate-star-first">
<i
class="anticon anticon-star" />
</div>
<div
class="ant-rate-star-second">
<i
class="anticon anticon-star" />
</div>
</li>
</ul>
`;
exports[`test renders ./components/rate/demo/half.md correctly 1`] = `
<ul
class="ant-rate">
<li
class="ant-rate-star ant-rate-star-full">
<div
class="ant-rate-star-first">
<i
class="anticon anticon-star" />
</div>
<div
class="ant-rate-star-second">
<i
class="anticon anticon-star" />
</div>
</li>
<li
class="ant-rate-star ant-rate-star-full">
<div
class="ant-rate-star-first">
<i
class="anticon anticon-star" />
</div>
<div
class="ant-rate-star-second">
<i
class="anticon anticon-star" />
</div>
</li>
<li
class="ant-rate-star ant-rate-star-half ant-rate-star-active">
<div
class="ant-rate-star-first">
<i
class="anticon anticon-star" />
</div>
<div
class="ant-rate-star-second">
<i
class="anticon anticon-star" />
</div>
</li>
<li
class="ant-rate-star ant-rate-star-zero">
<div
class="ant-rate-star-first">
<i
class="anticon anticon-star" />
</div>
<div
class="ant-rate-star-second">
<i
class="anticon anticon-star" />
</div>
</li>
<li
class="ant-rate-star ant-rate-star-zero">
<div
class="ant-rate-star-first">
<i
class="anticon anticon-star" />
</div>
<div
class="ant-rate-star-second">
<i
class="anticon anticon-star" />
</div>
</li>
</ul>
`;
exports[`test renders ./components/rate/demo/text.md correctly 1`] = `
<span>
<ul
class="ant-rate">
<li
class="ant-rate-star ant-rate-star-full">
<div
class="ant-rate-star-first">
<i
class="anticon anticon-star" />
</div>
<div
class="ant-rate-star-second">
<i
class="anticon anticon-star" />
</div>
</li>
<li
class="ant-rate-star ant-rate-star-full">
<div
class="ant-rate-star-first">
<i
class="anticon anticon-star" />
</div>
<div
class="ant-rate-star-second">
<i
class="anticon anticon-star" />
</div>
</li>
<li
class="ant-rate-star ant-rate-star-full">
<div
class="ant-rate-star-first">
<i
class="anticon anticon-star" />
</div>
<div
class="ant-rate-star-second">
<i
class="anticon anticon-star" />
</div>
</li>
<li
class="ant-rate-star ant-rate-star-zero">
<div
class="ant-rate-star-first">
<i
class="anticon anticon-star" />
</div>
<div
class="ant-rate-star-second">
<i
class="anticon anticon-star" />
</div>
</li>
<li
class="ant-rate-star ant-rate-star-zero">
<div
class="ant-rate-star-first">
<i
class="anticon anticon-star" />
</div>
<div
class="ant-rate-star-second">
<i
class="anticon anticon-star" />
</div>
</li>
</ul>
<span
class="ant-rate-text">
3 stars
</span>
</span>
`;