| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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> |
| OLD | NEW |