OLD | NEW |
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 src="../../../http/tests/inspector/debugger-test.js"></script> | 4 <script src="../../../http/tests/inspector/debugger-test.js"></script> |
5 <script> | 5 <script> |
6 function keepAliveInInlineScript() { } | 6 function keepAliveInInlineScript() { } |
7 | 7 |
8 //# sourceURL=inlineScriptURL.js | 8 //# sourceURL=inlineScriptURL.js |
9 </script> | 9 </script> |
10 <script> | 10 <script> |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 var script = document.createElement("script"); | 47 var script = document.createElement("script"); |
48 script.src = "resources/script-with-poor-url.js"; | 48 script.src = "resources/script-with-poor-url.js"; |
49 document.head.appendChild(script); | 49 document.head.appendChild(script); |
50 } | 50 } |
51 | 51 |
52 function test() | 52 function test() |
53 | 53 |
54 { | 54 { |
55 function forEachScriptMatchingURL(url, handler) | 55 function forEachScriptMatchingURL(url, handler) |
56 { | 56 { |
57 var scripts = WebInspector.debuggerModel._scripts; | 57 var scripts = InspectorTest.debuggerModel._scripts; |
58 for (var id in scripts) { | 58 for (var id in scripts) { |
59 if (scripts[id].sourceURL.indexOf(url) !== -1) | 59 if (scripts[id].sourceURL.indexOf(url) !== -1) |
60 handler(scripts[id]); | 60 handler(scripts[id]); |
61 } | 61 } |
62 } | 62 } |
63 | 63 |
64 InspectorTest.runDebuggerTestSuite([ | 64 InspectorTest.runDebuggerTestSuite([ |
65 function testSourceURLCommentInInlineScript(next) | 65 function testSourceURLCommentInInlineScript(next) |
66 { | 66 { |
67 InspectorTest.showScriptSource("source-url-comment.html", didShowScr
iptSource); | 67 InspectorTest.showScriptSource("source-url-comment.html", didShowScr
iptSource); |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 }; | 190 }; |
191 | 191 |
192 </script> | 192 </script> |
193 | 193 |
194 </head> | 194 </head> |
195 | 195 |
196 <body onload="runTest()"> | 196 <body onload="runTest()"> |
197 <p>Tests that evals with sourceURL comment are shown in scripts panel.</p> | 197 <p>Tests that evals with sourceURL comment are shown in scripts panel.</p> |
198 </body> | 198 </body> |
199 </html> | 199 </html> |
OLD | NEW |