| 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> |
| 11 function doEval() | 11 function doEval() |
| 12 { | 12 { |
| 13 eval("function keepAlive() {}\n//@ sourceURL=evalURL.js"); | 13 eval("function keepAlive() {}\n//# sourceURL=evalURL.js"); |
| 14 } | 14 } |
| 15 | 15 |
| 16 function doEvalWithNonRelativeURL() | 16 function doEvalWithNonRelativeURL() |
| 17 { | 17 { |
| 18 eval("function relativeURLScript() {}\n//@ sourceURL=/js/nonRelativeURL.js")
; | 18 eval("function relativeURLScript() {}\n//# sourceURL=/js/nonRelativeURL.js")
; |
| 19 } | 19 } |
| 20 | 20 |
| 21 function doDynamicScript() | 21 function doDynamicScript() |
| 22 { | 22 { |
| 23 var scriptElement = document.createElement("script"); | 23 var scriptElement = document.createElement("script"); |
| 24 scriptElement.textContent = "function keepAliveInDynamicScript() {}\n//@ sou
rceURL=dynamicScriptURL.js"; | 24 scriptElement.textContent = "function keepAliveInDynamicScript() {}\n//# sou
rceURL=dynamicScriptURL.js"; |
| 25 document.body.appendChild(scriptElement); | 25 document.body.appendChild(scriptElement); |
| 26 } | 26 } |
| 27 | 27 |
| 28 function test() | 28 function test() |
| 29 | 29 |
| 30 { | 30 { |
| 31 function forEachScriptMatchingURL(url, handler) | 31 function forEachScriptMatchingURL(url, handler) |
| 32 { | 32 { |
| 33 var scripts = WebInspector.debuggerModel.scripts; | 33 var scripts = WebInspector.debuggerModel.scripts; |
| 34 for (var i = 0; i < scripts.length; ++i) { | 34 for (var i = 0; i < scripts.length; ++i) { |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 }; | 115 }; |
| 116 | 116 |
| 117 </script> | 117 </script> |
| 118 | 118 |
| 119 </head> | 119 </head> |
| 120 | 120 |
| 121 <body onload="runTest()"> | 121 <body onload="runTest()"> |
| 122 <p>Tests that evals with sourceURL comment are shown in scripts panel.</p> | 122 <p>Tests that evals with sourceURL comment are shown in scripts panel.</p> |
| 123 </body> | 123 </body> |
| 124 </html> | 124 </html> |
| OLD | NEW |