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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/submit-add-remove-element.html

Issue 1475863005: [Async][WIP] Call FrameLoader::checkCompleted() asynchronously to avoid sync body.onload() Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/forms/submit-add-remove-element.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/submit-add-remove-element.html b/third_party/WebKit/LayoutTests/fast/forms/submit-add-remove-element.html
index c54f4a335d592de11618f9e9d25fa602131eb59c..485b74ad9555254f78837b90cbbc22c594a36301 100644
--- a/third_party/WebKit/LayoutTests/fast/forms/submit-add-remove-element.html
+++ b/third_party/WebKit/LayoutTests/fast/forms/submit-add-remove-element.html
@@ -32,12 +32,11 @@ function afterSubmit(form)
form.removeChild(hidden);
}
-document.getElementById('target').onload = function(event) {
- shouldBeEqualToString('event.target.contentWindow.location.search', '?textData=b&submitform=Step');
- finishJSTest();
-}
-
window.onload = function() {
+ document.getElementById('target').onload = function(event) {
+ shouldBeEqualToString('event.target.contentWindow.location.search', '?textData=b&submitform=Step');
+ finishJSTest();
+ }
document.getElementById('submitButton').click();
}

Powered by Google App Engine
This is Rietveld 408576698