Fix tests for BlockHTMLParserOnStyleSheet
These tests fail when the BlockHTMLParserOnStyleSheet flag is turned on. The reason is that, with this flag, there is no way to block rendering. Fragment anchors currently defer some behavior while rendering is blocked. When the flag ships, this will no longer be possible. However, the behavior being checked by some of these tests can still occur, just in a different order. This CL fixes these tests so that they continue to guard the intended behavior. This generally means that the fragment will now invoke but we test the behavior between this initial invocation and a subsequent one by delaying the document load event. Bug: 891767 Change-Id: I0564b1f487c48be2f5efbb1c6478e3375a71e518 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2020503 Commit-Queue: David Bokan <bokan@chromium.org> Reviewed-by:Rune Lillesveen <futhark@chromium.org> Cr-Commit-Position: refs/heads/master@{#735460}
Showing
Please register or sign in to comment