facebookarchive/draft-js

Test to verify focus/scroll behavior

Open

#1,402 建立於 2017年9月22日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)JavaScript (22,554 star) (2,646 fork)batch import
help wantedtest coverage

描述

We have twice now had an issue where a change in Chrome breaks the scroll/focus behavior of Draft. See issues #14 and now https://github.com/facebook/draft-js/issues/1381.

It might not be easy, but I'd really like to get this covered by a test, so that we can know if/when it breaks again. Ideally would like both a unit test for focusNode in fbjs and a test that only uses the public API of Draft.js and reproduces an example similar to the one given in https://github.com/facebook/draft-js/issues/1381 .

It's true that these test would only start failing when run in the browser that has the inconsistency, but still would make it faster to verify and fix this type of problem.

貢獻者指南