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

Unified Diff: LayoutTests/fast/loader/data-images-with-images-disabled.html

Issue 475933003: Remove testRunner.globalFlag use from layout tests outside http/security (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Just use onload Created 6 years, 4 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
« no previous file with comments | « no previous file | LayoutTests/http/tests/misc/resources/content-iframe.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/loader/data-images-with-images-disabled.html
diff --git a/LayoutTests/fast/loader/data-images-with-images-disabled.html b/LayoutTests/fast/loader/data-images-with-images-disabled.html
index 0bf93db5741c23448ef50e30428e5818f3abd744..4a57fabc0b5e009025dbf6f4f879cc3e33aca353 100644
--- a/LayoutTests/fast/loader/data-images-with-images-disabled.html
+++ b/LayoutTests/fast/loader/data-images-with-images-disabled.html
@@ -3,11 +3,11 @@
<head>
<script>
function runTest() {
- if (window.testRunner && !testRunner.globalFlag) {
+ if (window.testRunner && window.location.hash != '#start') {
// Setting ImagesAllowed is async. Reload to ensure it has been propagated to loaders.
testRunner.dumpAsText();
testRunner.setImagesAllowed(false);
- testRunner.globalFlag = 1;
+ window.location.hash = '#start';
testRunner.queueReload();
return;
}
@@ -25,4 +25,4 @@ function runTest() {
FAIL
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAIAAAD/gAIDAAAAnklEQVR42u3QMQEAAAgDILV/51nBzwci0CmuRoEsWbJkyZKlQJYsWbJkyVIgS5YsWbJkKZAlS5YsWbIUyJIlS5YsWQpkyZIlS5YsBbJkyZIlS5YCWbJkyZIlS4EsWbJkyZKlQJYsWbJkyVIgS5YsWbJkKZAlS5YsWbIUyJIlS5YsWQpkyZIlS5YsBbJkyZIlS5YCWbJkyZIlS4EsWd8Wil4Bx2r6t7cAAAAASUVORK5CYII=">
</body>
-</html>
+</html>
« no previous file with comments | « no previous file | LayoutTests/http/tests/misc/resources/content-iframe.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698