Chromium Code Reviews
DescriptionRemove timing dependency to document onload in dialog-close-event.html
A follow-up of https://codereview.chromium.org/2355743005.
Previously, the layout test fast/dom/HTMLDialogElement/dialog-close-event.html
expected dialog's close event is not called before test completed, because the
dialog's close event should be called asynchronously.
However, if the timing of document's onload event is changed (e.g. by
Issue 624697), the dialog's close event might be called before document's
onload event, i.e. before test completes.
This CL makes the test to wait until two dialog's close events are called,
no matter when document's onload is called.
BUG=380087, 624697
Committed: https://crrev.com/4bc45550a35c63d7e400733e9bdf00114aa13e10
Cr-Commit-Position: refs/heads/master@{#422033}
Patch Set 1 #Patch Set 2 : Check close event is not called sync #
Total comments: 1
Messages
Total messages: 12 (7 generated)
|
||||||||||||||||||||||||||||