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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/console/console-search-reveals-messages.html

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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 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 function populateConsoleWithMessages() 6 function populateConsoleWithMessages()
7 { 7 {
8 for (var i = 0; i < 200; ++i) 8 for (var i = 0; i < 200; ++i)
9 console.log("Message #" + i); 9 console.log("Message #" + i);
10 console.log("LAST MESSAGE"); 10 console.log("LAST MESSAGE");
11 runTest(); 11 runTest();
12 } 12 }
13 13
14 function test() 14 function test()
15 { 15 {
16 var consoleView = WebInspector.ConsoleView.instance(); 16 var consoleView = Console.ConsoleView.instance();
17 var viewport = consoleView._viewport; 17 var viewport = consoleView._viewport;
18 const maximumViewportMessagesCount = 150; 18 const maximumViewportMessagesCount = 150;
19 InspectorTest.runTestSuite([ 19 InspectorTest.runTestSuite([
20 function waitForMessages(next) 20 function waitForMessages(next)
21 { 21 {
22 // NOTE: keep in sync with populateConsoleWithMessages above. 22 // NOTE: keep in sync with populateConsoleWithMessages above.
23 const expectedMessageCount = 201; 23 const expectedMessageCount = 201;
24 InspectorTest.waitForConsoleMessages(expectedMessageCount, next); 24 InspectorTest.waitForConsoleMessages(expectedMessageCount, next);
25 }, 25 },
26 26
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 } 71 }
72 } 72 }
73 </script> 73 </script>
74 </head> 74 </head>
75 <body onload="populateConsoleWithMessages()"> 75 <body onload="populateConsoleWithMessages()">
76 <p> 76 <p>
77 Tests that console viewport reveals messages on searching. 77 Tests that console viewport reveals messages on searching.
78 </p> 78 </p>
79 </body> 79 </body>
80 </html> 80 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698