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> |