| 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); |
| 11 var a = {}; | 11 var a = {}; |
| 12 for (var i = 0; i < 200; ++i) | 12 for (var i = 0; i < 200; ++i) |
| 13 a["field_" + i] = "value #" + i; | 13 a["field_" + i] = "value #" + i; |
| 14 console.dir(a); | 14 console.dir(a); |
| 15 console.log("LAST MATCH"); | 15 console.log("LAST MATCH"); |
| 16 runTest(); | 16 runTest(); |
| 17 } | 17 } |
| 18 //# sourceURL=console-search.html |
| 19 </script> |
| 18 | 20 |
| 21 <script> |
| 19 function test() | 22 function test() |
| 20 { | 23 { |
| 21 function addResult(result) | 24 function addResult(result) |
| 22 { | 25 { |
| 23 viewport.refresh(); | 26 viewport.refresh(); |
| 24 InspectorTest.addResult(result); | 27 InspectorTest.addResult(result); |
| 25 } | 28 } |
| 26 | 29 |
| 27 function setQuery(text, isRegex, caseSensitive, callback) | 30 function setQuery(text, isRegex, caseSensitive, callback) |
| 28 { | 31 { |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 ]); | 232 ]); |
| 230 } | 233 } |
| 231 </script> | 234 </script> |
| 232 </head> | 235 </head> |
| 233 <body onload="populateConsoleWithMessages()"> | 236 <body onload="populateConsoleWithMessages()"> |
| 234 <p> | 237 <p> |
| 235 Tests console search. | 238 Tests console search. |
| 236 </p> | 239 </p> |
| 237 </body> | 240 </body> |
| 238 </html> | 241 </html> |
| OLD | NEW |