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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/harness/user-preferred-language.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 test(message, success) 8 function test(message, success)
9 { 9 {
10 var li = document.createElement("li"); 10 var li = document.createElement("li");
11 var text = document.createTextNode(message + ': ' + (success ? ' PASS' : 'FAIL')); 11 var text = document.createTextNode(message + ': ' + (success ? ' PASS' : 'FAIL'));
12 li.appendChild(text); 12 li.appendChild(text);
13 document.getElementById("console").appendChild(li); 13 document.getElementById("console").appendChild(li);
14 } 14 }
15 15
(...skipping 20 matching lines...) Expand all
36 test('internals.userPreferredLanguages is mutable, and returns t he same value passed to it', sameContents); 36 test('internals.userPreferredLanguages is mutable, and returns t he same value passed to it', sameContents);
37 } 37 }
38 38
39 </script> 39 </script>
40 </head> 40 </head>
41 <body onload="runTest()"> 41 <body onload="runTest()">
42 <p>This test verifies that internals.userPreferredLanguages returns a mu table Array of the user's preferred languages.</p> 42 <p>This test verifies that internals.userPreferredLanguages returns a mu table Array of the user's preferred languages.</p>
43 <ul id="console"></ul> 43 <ul id="console"></ul>
44 </body> 44 </body>
45 </html> 45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698