Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(312)

Issue 2375413002: Remove timing dependency to document onload in dialog-close-event.html (Closed)

Created:
4 years, 2 months ago by hiroshige
Modified:
4 years, 2 months ago
Reviewers:
skobes, xing.xu
CC:
chromium-reviews, blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove 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
Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -6 lines) Patch
M third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-close-event.html View 1 3 chunks +12 lines, -6 lines 1 comment Download
M third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-close-event-expected.txt View 1 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (7 generated)
hiroshige
PTAL. https://codereview.chromium.org/2375413002/diff/20001/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-close-event.html File third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-close-event.html (right): https://codereview.chromium.org/2375413002/diff/20001/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-close-event.html#newcode20 third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-close-event.html:20: selfDialog = this; |self| is renamed because it ...
4 years, 2 months ago (2016-09-29 10:46:00 UTC) #5
xing.xu
On 2016/09/29 10:46:00, hiroshige wrote: > PTAL. > > https://codereview.chromium.org/2375413002/diff/20001/third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-close-event.html > File > third_party/WebKit/LayoutTests/fast/dom/HTMLDialogElement/dialog-close-event.html > ...
4 years, 2 months ago (2016-09-29 15:14:56 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2375413002/20001
4 years, 2 months ago (2016-09-30 05:08:31 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 2 months ago (2016-09-30 05:13:30 UTC) #10
commit-bot: I haz the power
4 years, 2 months ago (2016-09-30 05:15:39 UTC) #12
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/4bc45550a35c63d7e400733e9bdf00114aa13e10
Cr-Commit-Position: refs/heads/master@{#422033}

Powered by Google App Engine
This is Rietveld 408576698