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

Unified Diff: LayoutTests/http/tests/loading/preload-image-sizes-2x.html

Issue 715863004: Update a couple more tests for load completion definition change (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/http/tests/loading/preload-image-sizes-2x.html
diff --git a/LayoutTests/http/tests/loading/preload-image-sizes-2x.html b/LayoutTests/http/tests/loading/preload-image-sizes-2x.html
index 5134eb32a69a66f8fe62d56ed1f477f2c618ef80..e773cf4bebff453db70cd0936bd96e34c8417158 100644
--- a/LayoutTests/http/tests/loading/preload-image-sizes-2x.html
+++ b/LayoutTests/http/tests/loading/preload-image-sizes-2x.html
@@ -9,6 +9,8 @@
</head>
<body>
<script>
+ window.manualNotifyDone = true;
+ var reloaded = sessionStorage.pageReloaded;
if (window.testRunner)
testRunner.dumpAsText();
shouldBeTrue("internals.isPreloaded('resources/image2.png');");
@@ -27,6 +29,12 @@
shouldBeFalse("internals.isPreloaded('resources/base-image2.png?10');");
shouldBeFalse("internals.isPreloaded('resources/base-image3.png?10');");
+ window.onload = function() {
+ setTimeout(function() {
+ if (reloaded && window.testRunner)
+ testRunner.notifyDone();
+ }, 0);
+ }
</script>
<!-- Control group -->
<img src="resources/image2.png">

Powered by Google App Engine
This is Rietveld 408576698