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

Unified Diff: LayoutTests/fast/forms/suggestion-picker/week-suggestion-picker-reset-value-after-reload.html

Issue 214603003: Use a global variable in the test to avoid flakiness in the Mac port. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/forms/suggestion-picker/week-suggestion-picker-reset-value-after-reload.html
diff --git a/LayoutTests/fast/forms/suggestion-picker/week-suggestion-picker-reset-value-after-reload.html b/LayoutTests/fast/forms/suggestion-picker/week-suggestion-picker-reset-value-after-reload.html
index 62cb58c681591c73b1339a2a9392b439f34c9797..069f9621a6905e2ae63dfaeed678b6660e383bd6 100644
--- a/LayoutTests/fast/forms/suggestion-picker/week-suggestion-picker-reset-value-after-reload.html
+++ b/LayoutTests/fast/forms/suggestion-picker/week-suggestion-picker-reset-value-after-reload.html
@@ -13,7 +13,12 @@ var iframe;
var testInput1;
var testInput2;
+var iframeReloaded = false;
+
function runOnOpenPopup1() {
+ if (iframeReloaded)
+ return;
+
iframe = document.getElementById('iframe');
popupWindow.focus();
@@ -48,6 +53,7 @@ function runOnOpenPopup2AfterClosing() {
iframe.addEventListener('load', function () { parent.runOnIFrameLoad(); });
iframe.contentWindow.location.reload();
+ iframeReloaded = true;
}
function runOnIFrameLoad()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698