DescriptionFix flakiness of imported/web-platform-tests/html/syntax/parsing/html5lib_testsNN.html.
Root cause:
Our testharnessreport.js removes unnecessary text nodes in a callback registered
by add_completion_callback() [1]. The html5lib tests add other completion
callbacks to show failure reasons, and they run after the callback of
testharnessreport.js. So, the failure reasons remain in *-expected.txt.
Resolution:
testharness.js doesn't provide a way to specify that "This callback must run at
the end of callbacks." So we delay the text nodes cleanup by setTimeout(done, 0).
[1] https://github.com/w3c/testharness.js/blob/master/docs/api.md#callback-api
BUG=527262
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201628
Patch Set 1 #
Messages
Total messages: 6 (2 generated)
|