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

Unified Diff: LayoutTests/fast/dom/Window/Location/window-shadow-location-using-js-object-with-toString.html

Issue 713453003: De-flake window.location shadowing layout tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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: LayoutTests/fast/dom/Window/Location/window-shadow-location-using-js-object-with-toString.html
diff --git a/LayoutTests/fast/dom/Window/Location/window-shadow-location-using-js-object-with-toString.html b/LayoutTests/fast/dom/Window/Location/window-shadow-location-using-js-object-with-toString.html
index cca7a3e2b1d72b07b55ff785a13ede71d8aa0164..eb01549aaf319a0e352d6eb82e983be951c00596 100644
--- a/LayoutTests/fast/dom/Window/Location/window-shadow-location-using-js-object-with-toString.html
+++ b/LayoutTests/fast/dom/Window/Location/window-shadow-location-using-js-object-with-toString.html
@@ -9,7 +9,7 @@
testRunner.waitUntilDone();
var result;
- function frameLoaded()
+ window.onmessage = function()
{
result = normalizeURL(String(window.frames[0].location));
shouldBe("result", "'pass.html'");
@@ -17,6 +17,6 @@
testRunner.notifyDone();
}
</script>
-<iframe onload="frameLoaded()" src="resources/window-shadow-location-using-js-object-with-toString-iframe.html"></iframe>
+<iframe src="resources/window-shadow-location-using-js-object-with-toString-iframe.html"></iframe>
</body>
</html>

Powered by Google App Engine
This is Rietveld 408576698