DescriptionSpace out issuing of spellcheck requests to speed up layout test.
Avoid issuing all spellcheck requests (by focusing elements) in one go
as this queues up a number of tasks and timers that it will require going
back to the event loop many times to process and handle. As the actual
test also relies on timers and setTimeout() this delays the completion
of the test considerably.
Restructure the test, interleaving the element focusing (=> spellcheck
request) with asynchronously checking the spellcheck result. Test completes
earlier as a result.
R=haraken
BUG=356957
TEST=editing/spelling/spellcheck-editable-on-focus.html
Committed: https://crrev.com/7acaf8fd9fb9680ba4ba0956f289d43c4f6ef647
Cr-Commit-Position: refs/heads/master@{#380895}
Patch Set 1 #Patch Set 2 : force layout tests to run.... #Patch Set 3 : undo test-triggering change #
Messages
Total messages: 11 (6 generated)
|