Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / console / console-repeat-count.html
bloba12207e777a8cb493d8de1d390f82c94288e2fc9
1 <html>
2 <head>
3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/console-test.js"></script>
5 <script>
7 function dumpMessages()
9 for (var i = 0; i < 5; ++i)
10 console.log("Same message");
12 //# sourceURL=console-repeat-count.html
13 </script>
15 <script>
16 function test()
18 InspectorTest.evaluateInPage("dumpMessages()", step1);
20 function step1()
22 InspectorTest.evaluateInConsole("\"Different message\"", step2);
25 function step2()
27 InspectorTest.evaluateInPage("dumpMessages()", step3);
30 function step3()
32 InspectorTest.dumpConsoleMessages();
33 InspectorTest.completeTest();
36 </script>
37 </head>
38 <body onload="runTest()">
39 <p>
40 Tests that repeat count is properly updated.
41 </p>
42 </body>
43 </html>