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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/console/console-search.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 console.log("FIRST MATCH, SECOND MATCH"); 8 console.log("FIRST MATCH, SECOND MATCH");
9 for (var i = 0; i < 200; ++i) 9 for (var i = 0; i < 200; ++i)
10 console.log("Message #" + i); 10 console.log("Message #" + i);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 function dumpMatches() 44 function dumpMatches()
45 { 45 {
46 var matches = document.querySelectorAll("html /deep/ .highlighted-search -result"); 46 var matches = document.querySelectorAll("html /deep/ .highlighted-search -result");
47 addResult("number of visible matches: " + matches.length); 47 addResult("number of visible matches: " + matches.length);
48 for (var i = 0; i < matches.length; ++i) 48 for (var i = 0; i < matches.length; ++i)
49 addResult(" match " + i + ": " + matches[i].className); 49 addResult(" match " + i + ": " + matches[i].className);
50 addResult(""); 50 addResult("");
51 } 51 }
52 52
53 var consoleView = WebInspector.ConsoleView.instance(); 53 var consoleView = Console.ConsoleView.instance();
54 var viewport = consoleView._viewport; 54 var viewport = consoleView._viewport;
55 const maximumViewportMessagesCount = 150; 55 const maximumViewportMessagesCount = 150;
56 InspectorTest.runTestSuite([ 56 InspectorTest.runTestSuite([
57 function waitForMessages(next) 57 function waitForMessages(next)
58 { 58 {
59 // NOTE: keep in sync with populateConsoleWithMessages above. 59 // NOTE: keep in sync with populateConsoleWithMessages above.
60 const expectedMessageCount = 203; 60 const expectedMessageCount = 203;
61 InspectorTest.waitForConsoleMessages(expectedMessageCount, next); 61 InspectorTest.waitForConsoleMessages(expectedMessageCount, next);
62 }, 62 },
63 63
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 ]); 232 ]);
233 } 233 }
234 </script> 234 </script>
235 </head> 235 </head>
236 <body onload="populateConsoleWithMessages()"> 236 <body onload="populateConsoleWithMessages()">
237 <p> 237 <p>
238 Tests console search. 238 Tests console search.
239 </p> 239 </p>
240 </body> 240 </body>
241 </html> 241 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698