| 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 20 matching lines...) Expand all Loading... |
| 31 } | 31 } |
| 32 | 32 |
| 33 function doURLAndMappingURL() | 33 function doURLAndMappingURL() |
| 34 { | 34 { |
| 35 eval("function keepAlive() {}\n//# sourceMappingURL=sourceMappingURL.map\n//
# sourceURL=sourceURL.js"); | 35 eval("function keepAlive() {}\n//# sourceMappingURL=sourceMappingURL.map\n//
# sourceURL=sourceURL.js"); |
| 36 } | 36 } |
| 37 | 37 |
| 38 function addScriptWithURL() | 38 function addScriptWithURL() |
| 39 { | 39 { |
| 40 var script = document.createElement("script"); | 40 var script = document.createElement("script"); |
| 41 script.src = "resources/script-with-url.js"; | 41 script.src = "../debugger/resources/script-with-url.js"; |
| 42 document.head.appendChild(script); | 42 document.head.appendChild(script); |
| 43 } | 43 } |
| 44 | 44 |
| 45 function addScriptWithPoorURL() | 45 function addScriptWithPoorURL() |
| 46 { | 46 { |
| 47 var script = document.createElement("script"); | 47 var script = document.createElement("script"); |
| 48 script.src = "resources/script-with-poor-url.js"; | 48 script.src = "../debugger/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 = InspectorTest.debuggerModel._scripts; | 57 var scripts = InspectorTest.debuggerModel._scripts; |
| 58 for (var id in scripts) { | 58 for (var id in scripts) { |
| (...skipping 131 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 |