Commit Graph

379 Commits

Author SHA1 Message Date
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
Benjy Cui
383101830a docs: update demo 2016-12-08 18:15:10 +08:00
Wei Zhu
66f7b050eb Read initial visible state from column.filterDropdownVisible if it's available. (#4182)
fix #4162
2016-12-08 11:18:35 +08:00
Wei Zhu
e1efc29150 Enable Table sortOrder test. 2016-12-08 11:17:13 +08:00
Benjy Cui
36a4304de4 style: update code style for test case 2016-12-08 11:08:13 +08:00
Wei Zhu
536aed3ffe Improve Table testing (#4151) 2016-12-07 20:59:20 +08:00
Wei Zhu
1f36734cb6 Update snapshots for tabs 2016-12-07 11:53:14 +08:00
Benjy Cui
d94f0ab09a docs: update EditableTagGroup demo 2016-12-07 11:08:30 +08:00
陆离
f36f1625f1 add anchor-testing (#4154)
* add anchor-testing

* recover EOF blank
2016-12-06 18:42:20 +08:00
Benjy Cui
9afea0f47d test: update snapshot 2016-12-06 09:27:21 +08:00
afc163
4c116aaa3a Fix snap test 2016-12-05 11:47:42 +08:00
afc163
99df18139b Improve Menu selected design 2016-12-04 19:26:11 +08:00
afc163
ca1f16556c fix snap test 2016-12-04 17:53:52 +08:00
afc163
d2644e3c11 Fix snap test 2016-12-04 16:57:38 +08:00
afc163
9c3c2d7c0c Fix snap test 2016-12-04 16:01:45 +08:00
afc163
2ba1e8f3ef clean table demo 2016-12-03 17:50:41 +08:00
afc163
c06d205833 Fix snap test 2016-12-03 17:33:46 +08:00
afc163
c639c3a796 update snap test 2016-12-03 16:23:35 +08:00
afc163
4184e7c8ac fix input-number snap 2016-12-03 14:44:10 +08:00
Benjy Cui
a939769069 fix: Tooltip support multi children, close: #3924 (#4105) 2016-12-02 15:07:03 +08:00
Benjy Cui
f3ffae9e54 css: fix icon size in button, close: #4023 (#4080)
* css: fix icon size in button, close: #4023

* test: update snapshot for Button demo
2016-12-02 15:06:59 +08:00
Wei Zhu
d2918d2456 Fix rowSelection defauleChecked 2016-12-02 11:36:05 +08:00
Benjy Cui
75c09cb481 css: Form.Item[extra] should be block, close: #4089 2016-12-01 11:25:34 +08:00
Benjy Cui
04269ecb40 docs: hide Button[shape=circle-outline], close: #4077 2016-12-01 11:13:38 +08:00
Andrey G
a307a7acf7 refactor: remove unnecessary computed props for classNames (#4055)
* remove unnecessary computed props for classNames

* rollback autocomplete optimization for possible css style order issue

* update snapshots

* remove more unnecessary computed props at Input
2016-11-30 10:20:23 +08:00
afc163
6f3eafd061 fix snap test 2016-11-29 14:23:43 +08:00
afc163
3705130315 update snapshot 2016-11-26 14:39:30 +08:00
Wei Zhu
13e13f333d fix: Wrap custom filterDropdown by FilterDropdownMenuWrapper, fix #4010 (#4013) 2016-11-25 16:24:24 +08:00
Wei Zhu
86f1fa030a Fix: table columns not update (#4009) 2016-11-25 15:04:25 +08:00
Benjy Cui
59e0c6a4c1 docs: update demo for upload 2016-11-25 15:00:28 +08:00
Wei Zhu
bd55d21f83 style: Fix jsx-no-multiline-js (#3994)
* Fix jsx-no-multiline-js

* TimePicker addon test

* Transfer search test
2016-11-25 12:03:39 +08:00
afc163
e091efa2b5 fix transfer snapshots 2016-11-24 17:47:56 +08:00
Benjy Cui
dc2fb9c2ff test: update snpashot 2016-11-24 17:44:40 +08:00
Wei Zhu
5713a7cd39 test: Enabel menu demo testing (#3997) 2016-11-24 17:09:03 +08:00
ddcat1115
73c776e73d feat: Input add NumericInput demo & update searchInput demo (#3861)
* Input
add NumericInput demo
update searchInput

* Input

- add Input.Search
- update NumericInput

* snap update
2016-11-24 14:03:57 +08:00
Benjy Cui
f110472c93 test: update snapshot for demo 2016-11-24 10:54:51 +08:00
afc163
03360c2bf3 Fix demo test snapshot files 2016-11-23 20:38:57 +08:00
Wei Zhu
0acc7d592c Breadcrumb router demo test 2016-11-23 16:37:58 +08:00
Wei Zhu
5bd8977d75 Datepicker locale demo test 2016-11-23 16:31:54 +08:00
Wei Zhu
206a327ade Fix tests
1. run all same demo test on node as jsom
2. mock date
3. create a setup file for common settings
4. skip breadcrumb router demo test
2016-11-22 23:14:57 -09:00
afc163
e089f39048 fix ci timezone 2016-11-23 14:30:21 +08:00
afc163
f6f63606ea fix test snap via mocking Date.now 2016-11-23 12:15:23 +08:00
afc163
c5d9205a2b fix node snap 2016-11-22 15:42:09 +08:00
afc163
42c6f92f50 fix snap test 2016-11-22 15:19:18 +08:00
afc163
66678dd415 fix snap test 2016-11-22 15:04:35 +08:00
Wei Zhu
57f5d299af Check in snapshots 2016-11-22 14:39:40 +08:00
Wei Zhu
d20572bdab test: demo snapshot testing (#3916)
* Run snapshot testing against all demos

* Split demo tests

* ignore coverage folder

* Upgrade antd-demo-jest

* enable cache

* intergate with coveralls.io

* Add node test

* Set worker to 2

https://github.com/facebook/jest/issues/1742

* config coverage

* Set default supportServerRender to true
2016-11-22 13:43:53 +08:00
Wei Zhu
4b1722e95d fix: wrong select all checkbox displaying when pagination changes (#3904) 2016-11-22 13:42:45 +08:00
Wei Zhu
ed455c01d1 feat: Implement Table.Column and Table.ColumnGroup (#3868)
* Implement Table.Column and Table.ColumnGroup

* Upgrade rc-table
2016-11-22 10:11:12 +08:00
ddcat1115
29001ffe4c Merge pull request #3830 from ant-design/fix-popover
Let Checkbox and Radio response hover events
2016-11-17 22:59:31 +08:00
afc163
200d3715e3 update tests/index.test.js 2016-11-16 12:53:21 +08:00
偏右
e1e8003e54 Merge pull request #3818 from ant-design/chore-check-files
chore: check whether compiled files are valid
2016-11-15 15:29:33 +08:00
Meck
92df002fb0 Introduce jest snapshots 2016-11-14 18:50:23 +08:00
Benjy Cui
a0de4d6865 chore: check whether compiled files are valid 2016-11-14 15:03:16 +08:00
Meck
0a30315a32 Let Checkbox and Radio response hover events
Close #3455
2016-11-14 11:55:32 +08:00
Wei Zhu
b0c7a714ad Don't pass visible to Dropdown if it's not exits. (#3821)
fix #3815
2016-11-13 15:53:02 +08:00
Wei Zhu
926425d8ec Pass visible and onVisibleChange to Dropdown, fix #3779 (#3782) 2016-11-11 15:26:57 +08:00
Wei Zhu
0e6ac6bc4c Optimize table selection (#3757)
* Extract SelectionRadio, SelectionCheckbox, SelectionCheckboxAll

* Add some tests
2016-11-11 15:26:51 +08:00
ddcat1115
0baef0627e docs: 调整组件导航结构 (#3758)
- Layout 更名为 Grid
2016-11-09 14:43:32 +08:00
Benjy Cui
b8fb60079c test: fix test case 2016-10-24 17:02:03 +08:00
Junyu Zhan
4e8ba65828 Fix a typo (#3334)
just to get myself into the contributor list
2016-10-09 10:56:02 +08:00
偏右
51da9c637c test: fix jest test for typescript (#3169)
* fix jest test for typescript

* fix components detect tc

* remove console
2016-09-27 13:40:34 +08:00
afc163
6dad2b2987 Merge branch '1.x-stable' 2016-07-11 14:57:38 +08:00
afc163
72c431e791 update test case 2016-07-09 18:30:09 +08:00
afc163
cda5198207 upgrade devDeps 2016-07-09 18:10:11 +08:00
afc163
f675b636cd Merge 1.x-stable 2016-07-08 16:34:02 +08:00
afc163
60f658c8ea fix test case 2016-07-07 23:01:43 +08:00
afc163
2ffa087aa1 Merge branch '1.x-stable' 2016-06-24 14:33:37 +08:00
afc163
2007b2173e 1.6.0 2016-06-24 13:48:27 +08:00
afc163
695c26c859 Merge 1.x-stable 2016-06-22 22:56:55 +08:00
偏右
193fa8e9d6 Revert "use ava and enzyme, replace jest" (#2144) 2016-06-22 22:31:00 +08:00
afc163
7e25e414f8 fix tc 2016-06-22 18:10:31 +08:00
afc163
419c56ee9e fix tc 2016-06-22 17:30:04 +08:00
偏右
8f60a3c483 use ava and enzyme, replace jest (#2135) 2016-06-22 14:32:42 +08:00
afc163
c9bf5eb230 fix test case 2016-06-16 22:36:45 +08:00
afc163
799aa6ecc9 Merge branch 'master' of github.com:ant-design/ant-design 2016-06-06 15:47:05 +08:00
afc163
20a6f2cd60 Add test case for #1968 & #1970 2016-06-06 15:45:46 +08:00
ddcat1115
4af2731f0c fix #1672 (#1936) 2016-06-06 11:40:54 +08:00
afc163
9294dba6a5 remove tests/index.test.js 2016-06-01 15:10:36 +08:00
yiminghe
d7e1794711 fix tc 2016-05-31 16:03:03 +08:00
afc163
6f34472091 fix test case 2016-05-11 16:49:05 +08:00
afc163
c5af3dcc7c Fix missing Tag component in built package and add test case, close #1638 2016-05-11 15:29:08 +08:00
afc163
0ca6a1c24a css modularize (#1448)
* css modularize

* Add alert style

* Move more component style

* Move iconfont to common style

* Move layout style

* Move more component style

* Move all components

* Fix lots of mixin deps

* remove css-prefix from less

* fix a button icon style bug

* restructure

* fix index

* add dist

* fix jest

* fix some components style

* clean webpack config

* check more components style

* update tabs

* update scripts

* update scripts

* fix form style

* fix more style

* Fix select width

* Fix form and tabs style
2016-04-27 20:44:36 +08:00
afc163
00a2e97f23 fix test cases 2016-04-13 20:56:50 +08:00
afc163
761e5534c0 fix test cases 2016-04-07 16:56:13 +08:00
Bruce Mitchener
a9afa97e8b Fix popover test.
The class name was renamed in 6c913d7, so update the test to match.
2016-03-20 19:37:36 +07:00
afc163
621198c1f6 Add test for Layout 2016-02-03 21:53:36 +08:00
afc163
d900bec8b4 update test 2015-12-07 15:43:49 +08:00
afc163
2ea366c16c Add a button text test 2015-12-06 16:43:48 +08:00
afc163
34960cb662 upgrade to babel6, ref #413 2015-12-03 16:28:45 +08:00
afc163
e1766f2b6b Add test for icon, deal with testing stateless component 2015-11-30 16:54:39 +08:00
popomore
84647fa12d test: add simple testcase for popover 2015-11-04 17:22:33 +08:00
afc163
042bf1a20d speed up tests 2015-11-03 12:08:18 +08:00
afc163
c0dc894cbe Fix tests 2015-11-03 11:56:08 +08:00
afc163
2fa7f95cce basic test 2015-11-02 22:36:46 +08:00
afc163
9ef72bae9d Add simple test 2015-11-02 21:34:52 +08:00