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

Unified Diff: LayoutTests/fast/hidpi/image-srcset-change-dynamically-from-js-2x.html

Issue 136693020: Add image loading spec related tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixed expectation for origin header test Created 6 years, 10 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
Index: LayoutTests/fast/hidpi/image-srcset-change-dynamically-from-js-2x.html
diff --git a/LayoutTests/fast/hidpi/image-srcset-change-dynamically-from-js-2x.html b/LayoutTests/fast/hidpi/image-srcset-change-dynamically-from-js-2x.html
index 5d86cfc99350559b2312003c0aa8fb7956b414c8..bc8a8288e21e87dd010930edf4e594878f09ca35 100644
--- a/LayoutTests/fast/hidpi/image-srcset-change-dynamically-from-js-2x.html
+++ b/LayoutTests/fast/hidpi/image-srcset-change-dynamically-from-js-2x.html
@@ -1,9 +1,5 @@
<html>
<head>
-<script>
- if (window.testRunner)
- testRunner.dumpResourceRequestCallbacks();
-</script>
<script src="resources/srcset-helper.js"></script>
<script src="../../resources/js-test.js"></script>
<script>
@@ -15,6 +11,8 @@
}
addEventListener("DOMContentLoaded", function() {
+ if (window.testRunner && sessionStorage.pageReloaded)
+ testRunner.dumpResourceRequestCallbacks();
updateSrc();
}, false);
addEventListener("load", function() {

Powered by Google App Engine
This is Rietveld 408576698