Commit Graph

43 Commits

Author SHA1 Message Date
Aex
5328b4bb62
fix(anchor): targetOffset not work when contain spaces (#31952)
* fix(anchor): targetOffset not work when contain spaces

* fix(anchor): Modify the code style according to the lint rules
2021-08-30 12:10:02 +08:00
afc163
e021147bb8
fix: Anchor should trigger onChange when have getCurrentAnchor (#30601)
* fix: Anchor should trigger onChange when have getCurrentAnchor

close #30584

* test: add test case
2021-05-20 21:36:53 +08:00
骗你是小猫咪
6fba4d1136
test: demo -> ui test (#24475)
* test: demo -> ui test

* improve comment image width

* use argos-ci

* use by cicleci

* fix circle run

* rebase master

* try pipeline var

* use another branch var

* fix commit id

* ignore image test file

* remove useless report

* fix test coverage
2020-10-23 18:50:46 +08:00
afc163
704899415e docs: 📝 fix anchor demo 2020-09-14 19:13:47 +08:00
偏右
637aa09bc5
chore: fix some eslint problems (#24836)
* 💄 fix lint

* 💄 fix lint
2020-06-08 18:01:50 +08:00
偏右
633d064640
increase code cov (#23880) 2020-05-05 19:33:33 +08:00
Eric Wang
815baee4d9
chore: Transform anchor test to typescript (#23499)
* chore: Transform anchor test to typescript

* Separate dom

* use hash

* .

* chagnelog

* chore: Transform anchor test to typescript

* Separate dom

* use hash

* .

* rebase
2020-04-30 10:33:29 +08:00
吴泽康
4c9d03874b
fix: anchor regexp (#23577) (#23595)
* fix: anchor regexp (#23577)

* test: fix anchor complete href scrollTo test

* test: anchor sharp matcher regexp

* test: Anchor render perfectly for complete href - hash router
2020-04-26 16:11:37 +08:00
Eric Wang
55265ac4ef
chore: Replace domhook with jest.spyon (#23469)
* chore: Replace domhook with jest.spyon

* use mockreturn value when possible

* Update tests/shared/focusTest.js
2020-04-22 11:59:56 +08:00
偏右
66f67051af
test: improve test for requestAnimationFrame (#22433)
* test: improve test for requestAnimationFrame

*  fix test coverage

* fix test case

* fix test case
2020-03-20 15:07:47 +08:00
诸岳
f8af6972ba Merge branch 'master' of github.com:ant-design/ant-design into feature 2019-09-07 00:23:09 +08:00
骗你是小猫咪
b93d10d40b feat(Anchor): add onChange prop (#18715)
* feat(Anchor): add onChange prop

* test(Anchor): add onChange prop

* update snapshots
2019-09-06 19:54:13 +08:00
骗你是小猫咪
d9bfc689a4 test(Anchor): optimize dataNowMockFn, avoid being consumed in advance (#18663)
* 优化 dataNowMockFn, 避免被提前消费

* test circleci/node:latest

* change .circleci circleci/node:latest -> circleci/node:lts

* add step command [node -v] check current node version

* retry ci test

* rebase master

* retry CI test
2019-09-05 11:33:11 +08:00
愚道
2f5537a65b Merge branch 'master' into chore/mergemaster 2019-09-02 10:47:32 +08:00
afc163
06be298a5c fix ci 2019-08-28 18:43:33 +08:00
DiamondYuan
a5f1fc80fd fix: Anchor.Link add add new property target (#18335)
* fix: Anchor.Link add add new property target

* docs: update doc of anchor
2019-08-19 11:10:06 +08:00
shao
2416d17b74 test: reduce test time 2019-08-16 17:59:33 +08:00
shao
9a3feda565 test: reduce test time 2019-08-16 17:59:32 +08:00
shao
b4a228c4f4 perf: replace all test suite delay func to common test util sleep func 2019-08-16 17:58:42 +08:00
shao
5e4835363b feat(Anchor): add targetOffset prop demo 2019-08-16 17:58:32 +08:00
shao
a103d21062 feat(Anchor): add targetOffset prop test case 2019-08-16 17:57:41 +08:00
shao
4beb676794 fix(Anchor): update demo test snap 2019-07-23 16:19:22 +08:00
shao
2a7cb944e0 feat(Anchor): add getCurrentAnchor prop 2019-07-23 14:59:28 +08:00
黄斌
aa663e149d feat: Re-bind scroll events when components change, add test cases 2019-07-16 19:19:11 +08:00
gyh9457
c037e8dddd fix anchor demo (#14226)
* fix anchor demo

* update anchor snapshot
2019-01-09 23:40:47 +08:00
陈帅
dca9715186 support prettier 2018-12-07 18:27:30 +08:00
afc163
83c192ea3e
💄 fix eslint problems 2018-11-28 15:11:02 +08:00
mushan0x0
dd37457048 feat: Anchor onClick (#11898)
* update: 添加AntAnchor类型

* update: 完成代码逻辑

* update: 添加测试

* update: 点击锚点不记录历史

* update: 添加示例

* docs: 更新文档

* update: 更改onClick事件里的link为对象

* update: 优化代码

* update: 修改propClick为onClick
2018-08-28 20:20:46 +08:00
afc163
7b719ce457 simplicy Anchor test 2018-08-11 15:16:33 +08:00
afc163
fbab93fbd6 fix anchor test fails a lot again 2018-08-11 11:23:42 +08:00
afc163
c2319f0998 fix test fails a lot 2018-08-10 00:11:12 +08:00
tangjinzhou
14e0cc0161 fix: anchorLink href update 2018-07-16 17:31:32 +08:00
afc163
93b14da4a6 improve test code 2018-05-25 21:43:21 +08:00
afc163
50057739bf Add test cases for Anchor 2018-05-25 21:43:21 +08:00
afc163
be13326a1b Fix typo 2018-05-25 21:43:21 +08:00
junjing.zhang
0933201652 anchor scroll supports complete href link - test
anchor scroll supports complete href link, e.g. http://www.example.com/#id, not just #id
2018-01-04 19:27:23 +08:00
afc163
8fb285fce9 Move maxHeight code into anchor, close #8606 2017-12-28 13:20:12 +08:00
偏右
9053192ae9 Fix component style (#7848)
* fix components style

* fix snapshot

* update travis node version

* change upload action in ci
2017-10-11 12:01:27 +08:00
Wei Zhu
c5487ad1eb React 16 + Enzyme 3 2017-10-09 19:18:04 +08:00
Benjy Cui
f2d4d0a9e4 refactor: simplify Anchor, and fix #6473 2017-07-21 11:58:12 +08:00
Wei Zhu
f6b1e942e3 Jest 19 (#5361)
* Upgeade to jest 19

* Use jest.spyOn
2017-03-17 18:56:30 +08:00
Wei Zhu
07103b9fb6 Don't ignore test files. 2016-12-14 14:48:09 +08:00
Wei Zhu
17a0a33283 Restructure tests. 2016-12-14 14:41:39 +08:00