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

Unified Diff: third_party/WebKit/LayoutTests/fast/text-autosizing/empty-document-crash.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/text-autosizing/empty-document-crash.html
diff --git a/third_party/WebKit/LayoutTests/fast/text-autosizing/empty-document-crash.html b/third_party/WebKit/LayoutTests/fast/text-autosizing/empty-document-crash.html
index 094af576021d3966e3c29cac1cb15bb90dcf23cc..4fd510ad7af13fb695141abd74e82b8c1d7030b1 100644
--- a/third_party/WebKit/LayoutTests/fast/text-autosizing/empty-document-crash.html
+++ b/third_party/WebKit/LayoutTests/fast/text-autosizing/empty-document-crash.html
@@ -21,7 +21,7 @@ Test for crbug.com/348458: this test passes if it does not crash.
document.body.innerHTML += "<iframe src='data:text/html,<body><script>document.removeChild(document.body.parentElement)</s" + "cript>'></body></iframe>";
var forceLayout = document.getElementsByTagName('iframe')[0].offsetWidth;
document.write("PASS");
- if (testRunner)
+ if (window.testRunner)
testRunner.dumpAsText();
</script>

Powered by Google App Engine
This is Rietveld 408576698