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

Side by Side Diff: LayoutTests/http/tests/inspector/search/search-in-concatenated-script.html

Issue 1238103002: [DevTools] Do not report edited resources via Page.getResourceContent. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Nuked concatenated, fixed comments Created 5 years, 4 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../inspector-test.js"></script>
4 <script src="../resources-test.js"></script>
5 <script src="../debugger-test.js"></script>
6 <script src="search-test.js"></script>
7 <script>
8 function test()
9 {
10 // This file should not match search query.
11 var text = "searchTest" + "UniqueString";
12 InspectorTest.startDebuggerTest(step1);
13
14 function step1()
15 {
16 InspectorTest.runAfterResourcesAreFinished(["search-concatenated.html"], step2);
17 }
18
19 function step2()
20 {
21 InspectorTest.showScriptSource("search-concatenated.html", step3);
22 }
23
24 function step3()
25 {
26 var url = "http://127.0.0.1:8000/inspector/search/resources/search-conca tenated.html";
27 var scripts = InspectorTest.queryScripts(function(s) { return s.sourceUR L === url; });
28 var contentProvider = new WebInspector.ConcatenatedScriptsContentProvide r(scripts);
29 InspectorTest.addResult(url);
30 contentProvider.searchInContent(text, false, false, step4);
31 }
32
33 function step4(searchMatches)
34 {
35 InspectorTest.dumpSearchMatches(searchMatches);
36 InspectorTest.completeDebuggerTest();
37 }
38 }
39 </script>
40 </head>
41 <body>
42 <p>Tests concatenated script search in inspector debugger agent.</p>
43 <a href="https://bugs.webkit.org/show_bug.cgi?id=69015">Bug 69015</a>
44
45 <iframe src="resources/search-concatenated.html" onload="runTest()">
46 </body>
47 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698