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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/HTMLImageElement/image-srcset-w-onerror.html

Issue 2295653002: Use window.testRunner in if-clause (Closed)
Patch Set: a Created 4 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
Index: third_party/WebKit/LayoutTests/fast/dom/HTMLImageElement/image-srcset-w-onerror.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/HTMLImageElement/image-srcset-w-onerror.html b/third_party/WebKit/LayoutTests/fast/dom/HTMLImageElement/image-srcset-w-onerror.html
index c421a12e869e927f7399e4138a61e3510e811ac4..e1457d13d2626f42bab3e0cbf78e79f65a653c38 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/HTMLImageElement/image-srcset-w-onerror.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/HTMLImageElement/image-srcset-w-onerror.html
@@ -1,12 +1,12 @@
<!DOCTYPE html>
<script>
- if (testRunner) {
+ if (window.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
window.onload = function() {
setTimeout(function() {
- if (testRunner)
+ if (window.testRunner)
testRunner.notifyDone();
}, 500);
};

Powered by Google App Engine
This is Rietveld 408576698