3 <script src=
"../inspector-test.js"></script>
4 <script src=
"../resources-test.js"></script>
5 <script src=
"search-test.js"></script>
9 // This file should not match search query.
10 var text
= "searchTest" + "UniqueString";
11 InspectorTest
.runAfterResourcesAreFinished(["search.js"], step2
);
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 InspectorTest
.PageAgent
.searchInResource(resource
.frameId
, url
, text
, step3
);
20 function step3(error
, searchMatches
)
22 InspectorTest
.dumpSearchMatches(searchMatches
);
23 InspectorTest
.completeTest();
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>
32 <iframe src=
"resources/search.html" onload=
"runTest()">