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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/frames/iframe-plugin-load-remove-document-crash.html

Issue 2295653002: Use window.testRunner in if-clause (Closed)
Patch Set: a Created 4 years, 3 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 unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <body onload="runTest()"> 2 <body onload="runTest()">
3 <script> 3 <script>
4 if (window.testRunner) 4 if (window.testRunner)
5 { 5 {
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 testRunner.waitUntilDone(); 7 testRunner.waitUntilDone();
8 } 8 }
9 9
10 function runTest() 10 function runTest()
11 { 11 {
12 document.body.innerHTML = 'PASS'; 12 document.body.innerHTML = 'PASS';
13 13
14 if (testRunner) 14 if (window.testRunner)
15 testRunner.notifyDone(); 15 testRunner.notifyDone();
16 } 16 }
17 </script> 17 </script>
18 <iframe src="data:application/x-blink-test-plugin,foo"></iframe> 18 <iframe src="data:application/x-blink-test-plugin,foo"></iframe>
19 </body> 19 </body>
20 </html> 20 </html>
21 21
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698