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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/search-config.html

Issue 2660853002: DevTools: fix search across all files in case of "file:" prefix (Closed)
Patch Set: use \s instead of space Created 3 years, 10 months 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/search-config-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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> 4 <script>
5 function test() 5 function test()
6 { 6 {
7 function dumpParsedSearchQuery(query, isRegex) 7 function dumpParsedSearchQuery(query, isRegex)
8 { 8 {
9 var searchConfig = new Workspace.SearchConfig(query, true, isRegex); 9 var searchConfig = new Workspace.SearchConfig(query, true, isRegex);
10 InspectorTest.addResult("Dumping parsed search query [" + query + "]:"); 10 InspectorTest.addResult("Dumping parsed search query [" + query + "]:");
11 InspectorTest.addResult(JSON.stringify(searchConfig.queries())); 11 InspectorTest.addResult(JSON.stringify(searchConfig.queries()));
12 } 12 }
13 13
14 dumpParsedSearchQuery("function", false); 14 dumpParsedSearchQuery("function", false);
15 dumpParsedSearchQuery(" function", false); 15 dumpParsedSearchQuery(" function", false);
16 dumpParsedSearchQuery(" function file:js", false); 16 dumpParsedSearchQuery(" function file:js", false);
17 dumpParsedSearchQuery("file:js function ", false);
17 dumpParsedSearchQuery("\s", true); 18 dumpParsedSearchQuery("\s", true);
18 dumpParsedSearchQuery(" \s hello", true); 19 dumpParsedSearchQuery(" \s hello", true);
19 InspectorTest.completeTest(); 20 InspectorTest.completeTest();
20 }; 21 };
21 </script> 22 </script>
22 </head> 23 </head>
23 <body onload="runTest()"> 24 <body onload="runTest()">
24 <p>Tests search query parsing.</p> 25 <p>Tests search query parsing.</p>
25 </body> 26 </body>
26 </html> 27 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/search-config-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698