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