Index: LayoutTests/fast/dom/HTMLImageElement/image-sizes-2x.html |
diff --git a/LayoutTests/fast/dom/HTMLImageElement/image-sizes-2x.html b/LayoutTests/fast/dom/HTMLImageElement/image-sizes-2x.html |
index 609844f6e2708a7ebd9155c7218b13a0e1873732..8c7494769296a3733391718019bc4f43e5760c4e 100644 |
--- a/LayoutTests/fast/dom/HTMLImageElement/image-sizes-2x.html |
+++ b/LayoutTests/fast/dom/HTMLImageElement/image-sizes-2x.html |
@@ -4,10 +4,13 @@ |
</script> |
<script src="../../hidpi/resources/srcset-helper.js"></script> |
<script src="../../../resources/js-test.js"></script> |
+<script src="../../../resources/run-after-display.js"></script> |
dcheng
2014/11/12 21:30:33
This doesn't seem to be used.
|
<script src="resources/currentSrcHelper.js"></script> |
<script> |
if (window.testRunner) |
testRunner.dumpAsText(); |
+ window.manualNotifyDone = true; |
dcheng
2014/11/12 21:30:33
srcset-helper.js doesn't (seem) to be widely used
Nate Chapin
2014/11/12 21:33:28
It's used in ~50 tests. I can do that if you reall
dcheng
2014/11/12 21:43:41
Codesearch fail =/
Would it be possible to just t
|
+ var reloaded = sessionStorage.pageReloaded; |
dcheng
2014/11/12 21:30:33
Yikes, magic variables =/
|
addEventListener("load", function() { |
shouldBe('document.getElementById("simple").clientWidth', 'window.innerWidth'); |
@@ -34,6 +37,9 @@ |
shouldBe('currentSrcFileNameNoParams("half_size")', '"image-set-2x.png"'); |
shouldBe('document.getElementById("infitisimal_sizes").clientWidth', '(window.innerWidth/100)'); |
shouldBe('currentSrcFileNameNoParams("infitisimal_sizes")', '"image-set-2x.png"'); |
+ |
+ if (window.testRunner && reloaded) |
+ testRunner.notifyDone(); |
}, false); |
</script> |
<img id="simple" src="" sizes="(max-width: 300px) 400px, 800px" srcset="../../hidpi/resources/image-set-1x.png?1 400w, ../../hidpi/resources/image-set-2x.png?1 800w"> |