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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 }); | 221 }); |
222 }, | 222 }, |
223 | 223 |
224 function testCaseSensitiveRegexWithMatches(next) | 224 function testCaseSensitiveRegexWithMatches(next) |
225 { | 225 { |
226 setQuery(". MATCH", true, true, function() { | 226 setQuery(". MATCH", true, true, function() { |
227 consoleView._searchableView.handleFindNextShortcut(); | 227 consoleView._searchableView.handleFindNextShortcut(); |
228 dumpMatches(); | 228 dumpMatches(); |
229 next(); | 229 next(); |
230 }); | 230 }); |
| 231 }, |
| 232 |
| 233 function testCanMatchAnchors(next) { |
| 234 var anchorSourcePrefix = "console-search.html"; |
| 235 setQuery(anchorSourcePrefix, false, false, function() { |
| 236 dumpMatches(); |
| 237 next(); |
| 238 }); |
231 } | 239 } |
232 ]); | 240 ]); |
233 } | 241 } |
234 </script> | 242 </script> |
235 </head> | 243 </head> |
236 <body onload="populateConsoleWithMessages()"> | 244 <body onload="populateConsoleWithMessages()"> |
237 <p> | 245 <p> |
238 Tests console search. | 246 Tests console search. |
239 </p> | 247 </p> |
240 </body> | 248 </body> |
241 </html> | 249 </html> |
OLD | NEW |