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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/search/search-in-non-existing-resource.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="../inspector-test.js"></script> 3 <script src="../inspector-test.js"></script>
4 <script src="../resources-test.js"></script> 4 <script src="../resources-test.js"></script>
5 <script src="search-test.js"></script> 5 <script src="search-test.js"></script>
6 <script> 6 <script>
7 function test() 7 function test()
8 { 8 {
9 // This file should not match search query. 9 // This file should not match search query.
10 var text = "searchTest" + "UniqueString"; 10 var text = "searchTest" + "UniqueString";
11 InspectorTest.runAfterResourcesAreFinished(["search.js"], step2); 11 InspectorTest.runAfterResourcesAreFinished(["search.js"], step2);
12 12
13 function step2() 13 function step2()
14 { 14 {
15 var resource = WebInspector.resourceForURL("http://127.0.0.1:8000/inspec tor/search/resources/search.js"); 15 var resource = Bindings.resourceForURL("http://127.0.0.1:8000/inspector/ search/resources/search.js");
16 var url = "http://127.0.0.1:8000/inspector/search/resources/non-existing .js"; 16 var url = "http://127.0.0.1:8000/inspector/search/resources/non-existing .js";
17 InspectorTest.PageAgent.searchInResource(resource.frameId, url, text, st ep3); 17 InspectorTest.PageAgent.searchInResource(resource.frameId, url, text, st ep3);
18 } 18 }
19 19
20 function step3(error, searchMatches) 20 function step3(error, searchMatches)
21 { 21 {
22 InspectorTest.addResult(error); 22 InspectorTest.addResult(error);
23 InspectorTest.completeTest(); 23 InspectorTest.completeTest();
24 } 24 }
25 } 25 }
26 </script> 26 </script>
27 </head> 27 </head>
28 <body> 28 <body>
29 <p>Tests single resource search in inspector page agent with non existing resour ce url does not cause a crash.</p> 29 <p>Tests single resource search in inspector page agent with non existing resour ce url does not cause a crash.</p>
30 <a href="https://bugs.webkit.org/show_bug.cgi?id=69767">Bug 69767</a> 30 <a href="https://bugs.webkit.org/show_bug.cgi?id=69767">Bug 69767</a>
31 31
32 <iframe src="resources/search.html" onload="runTest()"> 32 <iframe src="resources/search.html" onload="runTest()">
33 </body> 33 </body>
34 </html> 34 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698