| 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/console-test.js"></script> | 4 <script src="../../../http/tests/inspector/console-test.js"></script> |
| 5 | 5 |
| 6 <script> | 6 <script> |
| 7 function newWorld() | 7 function newWorld() |
| 8 { | 8 { |
| 9 testRunner.evaluateScriptInIsolatedWorld(239, "console.log(42);\n//# sourceU
RL=239.js"); | 9 testRunner.evaluateScriptInIsolatedWorld(239, "console.log(42);\n//# sourceU
RL=239.js"); |
| 10 } | 10 } |
| 11 | 11 |
| 12 function test() | 12 function test() |
| 13 { | 13 { |
| 14 InspectorTest.debuggerModel.addEventListener(WebInspector.DebuggerModel.Even
ts.ParsedScriptSource, step2); | 14 InspectorTest.debuggerModel.addEventListener(WebInspector.DebuggerModel.Even
ts.ParsedScriptSource, step2); |
| 15 InspectorTest.evaluateInPage("newWorld()"); | 15 InspectorTest.evaluateInPage("newWorld()\n//# sourceURL=foo.js"); |
| 16 | 16 |
| 17 var expectedScriptParsed = 2; | 17 var expectedScriptParsed = 2; |
| 18 function step2(event) | 18 function step2(event) |
| 19 { | 19 { |
| 20 var script = event.data; | 20 var script = event.data; |
| 21 InspectorTest.addResult(script._isInternalScript ? "Internal script" : "
Not internal script"); | 21 InspectorTest.addResult(script.sourceURL + ":" + (script._isInternalScri
pt ? "Internal script" : "Not internal script")); |
| 22 --expectedScriptParsed; | 22 --expectedScriptParsed; |
| 23 if (!expectedScriptParsed) | 23 if (!expectedScriptParsed) |
| 24 InspectorTest.completeTest(); | 24 InspectorTest.completeTest(); |
| 25 } | 25 } |
| 26 } | 26 } |
| 27 </script> | 27 </script> |
| 28 </head> | 28 </head> |
| 29 <body onload="runTest()"> | 29 <body onload="runTest()"> |
| 30 <p> | 30 <p> |
| 31 Tests that injected script has isInternalScript flag. | 31 Tests that injected script has isInternalScript flag. |
| 32 </p> | 32 </p> |
| 33 </body> | 33 </body> |
| 34 </html> | 34 </html> |
| OLD | NEW |