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

Side by Side Diff: LayoutTests/inspector/console/console-repeat-count.html

Issue 1218873002: Layout tests: unflake console tests that race with the main resource load. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script> 4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script> 5 <script>
6 6
7 function dumpMessages() 7 function dumpMessages()
8 { 8 {
9 for (var i = 0; i < 5; ++i) 9 for (var i = 0; i < 5; ++i)
10 console.log("Same message"); 10 console.log("Same message");
11 } 11 }
12 //# sourceURL=console-repeat-count.html
13 </script>
12 14
15 <script>
13 function test() 16 function test()
14 { 17 {
15 InspectorTest.evaluateInPage("dumpMessages()", step1); 18 InspectorTest.evaluateInPage("dumpMessages()", step1);
16 19
17 function step1() 20 function step1()
18 { 21 {
19 InspectorTest.evaluateInConsole("\"Different message\"", step2); 22 InspectorTest.evaluateInConsole("\"Different message\"", step2);
20 } 23 }
21 24
22 function step2() 25 function step2()
23 { 26 {
24 InspectorTest.evaluateInPage("dumpMessages()", step3); 27 InspectorTest.evaluateInPage("dumpMessages()", step3);
25 } 28 }
26 29
27 function step3() 30 function step3()
28 { 31 {
29 InspectorTest.dumpConsoleMessages(); 32 InspectorTest.dumpConsoleMessages();
30 InspectorTest.completeTest(); 33 InspectorTest.completeTest();
31 } 34 }
32 } 35 }
33 </script> 36 </script>
34 </head> 37 </head>
35 <body onload="runTest()"> 38 <body onload="runTest()">
36 <p> 39 <p>
37 Tests that repeat count is properly updated. 40 Tests that repeat count is properly updated.
38 </p> 41 </p>
39 </body> 42 </body>
40 </html> 43 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698