Commit Graph

145 Commits

Author SHA1 Message Date
Ilan
1ad5baaf23 updating tests 2018-11-03 00:17:58 +08:00
zombieJ
796b56dbc4
New Component Skeleton (#11226)
* Add new component Skeleton
* Add related doc
* Add sample
* Add test case

ref: https://github.com/ant-design/ant-design/issues/10308
2018-08-22 23:34:36 +08:00
Wei Zhu
91a7318999 test: fix react mock 2018-07-23 16:58:29 +08:00
Wei Zhu
435d793d60 test: fix React.createContext mock 2018-07-23 16:34:01 +08:00
Wei Zhu
c25e8de736 test: mock React.createRef 2018-07-23 16:12:36 +08:00
陈帅
dba4b8c3c9 use context to implement multiple drawers 2018-07-13 22:23:12 +08:00
jim
86655c0ebc update test snap 2018-07-13 22:23:12 +08:00
Wei Zhu
ea42973ace mock React.createContext 2018-07-11 11:16:37 +08:00
afc163
9f16d066af Fix lint problems from eslint-config-airbnb@17 2018-06-22 21:05:13 +08:00
afc163
292a91a777 Add test cases for Mention 2018-05-22 23:29:09 +08:00
Wei Zhu
edbbaac5f9 Fix date mocking
new Date returns a UTC time in node

Close #9743
2018-03-21 12:27:41 +08:00
Wei Zhu
62c9dee43e Remove timezone from mock date 2018-03-12 11:22:59 +08:00
偏右
8226ede38e
Fix test case for new jsdom (#9527)
* Fix test case for new jsdom

* use setTimeout as raf in jest jsdom

* Fix cancelAnimationFrame

* Add comment for facebook/jest#5147

* longer timeout

* fix snap

* upgrade antd-tools
2018-03-06 21:21:01 +08:00
Wei Zhu
a8a4152c65 Clear RangePicker hover value after panel close (#9029)
Fix #8839
2018-01-21 01:03:51 +08:00
Wei Zhu
46b45acb12
Remove babel-plugin-add-module-exports (#8888) 2018-01-13 05:11:53 -06:00
Wei Zhu
bf27b99947 v2-compatible-reset.css only exists in lib/style 2017-12-05 15:25:18 +08:00
Wei Zhu
9bcb8b8eec Fix typo 2017-12-05 15:21:20 +08:00
Wei Zhu
28d13e2539 Add missing v2-compatible-reset.less 2017-12-05 15:12:14 +08:00
Wei Zhu
9678d3fcfd
Focus && blur support (#8204)
* Add test for select

* Add focus() and blur() for AutoComplete

* Add focus() and blur() to Cascader

* Add focus test for input

* Add focus() and blur() for Checkbox

* Add focus() and blur() for Radio

* Add focus() and blur() for Switch

* Add blur() for TimePicker

* Add focus() and blur() to TreeSelect
2017-11-19 01:41:40 +08:00
Wei Zhu
55c85f77a1
Update dependendies (#8150)
* deps: upgrade rc-menu, and close: #2837

* test: update snapshots

* Update rc-calendar

* Update rc-cascader

* Update rc-dialog

* Update dropdown

* Update rc-select@7.1.0

* Update rc-slider

* Update rc-time-picker

* Update rc-tooltip

* Update rc-tree-select

* Mock rc-trigger and Portal

* Fix animation warning when inlineCollapsed changes

* fix: should use SubMenu[popupClassName]

* Fix typescript error

* Fix lint

* fix: style for menu

* Mock rc-trigger for React 15

* Remvoe allow_failures
2017-11-11 00:07:03 +08:00
Wei Zhu
67fee48c6a Run test against multiple react versions 2017-11-07 10:51:25 +08:00
afc163
c472ed27f8 Merge branch 'master' into antd-3.0 2017-10-23 19:40:14 +08:00
Wei Zhu
f03af93b86 Optimize ci scripts 2017-10-23 16:32:42 +08:00
Wei Zhu
c5487ad1eb React 16 + Enzyme 3 2017-10-09 19:18:04 +08:00
Wei Zhu
250c7a9c68 Revert "Mock rc-trigger"
This reverts commit 9d2c91598b.
2017-09-15 16:42:25 +08:00
Wei Zhu
9d2c91598b Mock rc-trigger
Ref #5522
2017-09-15 16:14:26 +08:00
afc163
5a971b24ad Merge from master 2017-08-27 19:32:02 +08:00
偏右
742999ff28 Fix matchMedia not present in jest test (#7344)
close #6560

close #3308

close #7341
2017-08-27 16:53:36 +08:00
ddcat1115
aa9f97dfda Merge remote-tracking branch 'origin/master' into antd-3.0 2017-08-24 10:45:02 +08:00
afc163
d0d6e10894 Fix node test again 2017-08-24 10:19:13 +08:00
ddcat1115
b10f7726c3 Merge remote-tracking branch 'origin/master' into antd-3.0 2017-08-23 23:12:38 +08:00
afc163
72f7232929 Add test cases for Card and Breadcrumb 2017-08-23 16:29:56 +08:00
偏右
3b59a03c00 New component divider (#7261)
* Add Divider

* use Divider in table demos

* update demo instruction

* upgrade snapshots
2017-08-19 12:39:11 +08:00
niko
12bbe3776c Feature list component (#7150)
* add list component

* fixed the demo syntax

* update list snapshots
2017-08-09 15:45:08 +08:00
乐仪
c30d1b191f add Avatar 2017-06-09 12:02:24 +08:00
Benjy Cui
03504446b5 chore: antd doesn't support IE8 anymore 2017-05-25 17:39:53 +08:00
Wei Zhu
d0c115da5e Don't need renderToJson anymore 2017-04-02 18:12:05 +08:00
Wei Zhu
f6b1e942e3 Jest 19 (#5361)
* Upgeade to jest 19

* Use jest.spyOn
2017-03-17 18:56:30 +08:00
偏右
dd589a4366 fix: change way to add package.version (#4842)
* Change way to add package.version

* replace content than create new content
2017-02-13 14:27:12 +08:00
Wei Zhu
f6c0e69af5 cleanup npm scripts (#4499)
* Cleanup npm scripts

* Lint fix

* Don't need ignore js files

* Upgrade jest

* Add components index.tsx test
2017-01-08 17:04:09 +08:00
偏右
15b81d7ec8 test: Add test case for components/index.tsx (#4450) 2017-01-03 16:15:05 +08:00
ddcat1115
c5b154294e add attribute compact for InputGroup (#4309)
* add attribute `compact` for InputGroup

* improve
2017-01-02 00:12:41 +08:00
偏右
0062867274 Feature 2.6 (#4429)
* new Layout Component (#4087)

* change Anchor type

* new Layout

* Component update && add snap

* Revert "new Layout Component" (#4131)

* add Layout (#4169)

* add Layout

* update

* fix snapshot

* Improve layout component

1. update demo code
2. drop `position` of Sider
3. improve demo style
2016-12-30 21:41:28 +08:00
afc163
f07f33d879 fix snapshots 2016-12-26 11:16:28 +08:00
Wei Zhu
3dc2ed6a64 Add forgotten snap back. 2016-12-21 00:53:35 +08:00
Wei Zhu
ba9d95bba9 Simplify module export test 2016-12-21 00:00:46 +08:00
Wei Zhu
17a0a33283 Restructure tests. 2016-12-14 14:41:39 +08:00
afc163
7cf4192c4e Add demo snap 2016-12-13 13:48:37 +08:00
afc163
16808eeadb fix test snap 2016-12-11 14:08:15 +08:00
afc163
f83b2c111e fix eslint warning 2016-12-11 14:01:14 +08:00