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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/harness/internals-object.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 <head> 2 <head>
3 <script> 3 <script>
4 4
5 if (testRunner) 5 if (window.testRunner)
6 testRunner.dumpAsText(); 6 testRunner.dumpAsText();
7 7
8 function runTest() 8 function runTest()
9 { 9 {
10 var log = document.body.appendChild(document.createElement('div')); 10 var log = document.body.appendChild(document.createElement('div'));
11 log.write = function(msg, success) 11 log.write = function(msg, success)
12 { 12 {
13 this.appendChild(document.createElement('div')).textContent = msg + ': ' + (success ? 'PASS' : 'FAIL'); 13 this.appendChild(document.createElement('div')).textContent = msg + ': ' + (success ? 'PASS' : 'FAIL');
14 } 14 }
15 15
16 log.write('window.internals object should be visible when running in DRT', ! !window.internals); 16 log.write('window.internals object should be visible when running in DRT', ! !window.internals);
17 } 17 }
18 18
19 </script> 19 </script>
20 </head> 20 </head>
21 <body onload="runTest()"> 21 <body onload="runTest()">
22 </body> 22 </body>
23 </html> 23 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698