| 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 test() | 6 function test() |
| 7 { | 7 { |
| 8 var script; | 8 var script; |
| 9 | 9 |
| 10 InspectorTest.startDebuggerTest(waitForScripts); | 10 InspectorTest.startDebuggerTest(waitForScripts); |
| 11 | 11 |
| 12 function waitForScripts() | 12 function waitForScripts() |
| 13 { | 13 { |
| 14 InspectorTest.showScriptSource("linkifier.html", debuggerTest); | 14 InspectorTest.showScriptSource("linkifier.html", debuggerTest); |
| 15 } | 15 } |
| 16 | 16 |
| 17 function debuggerTest() | 17 function debuggerTest() |
| 18 { | 18 { |
| 19 var url = InspectorTest.resourceTreeModel.inspectedPageURL(); | |
| 20 var target = WebInspector.targetManager.mainTarget(); | 19 var target = WebInspector.targetManager.mainTarget(); |
| 20 var url = target.inspectedURL(); |
| 21 var scripts = InspectorTest.debuggerModel.scripts; | 21 var scripts = InspectorTest.debuggerModel.scripts; |
| 22 for (var scriptId in scripts) { | 22 for (var scriptId in scripts) { |
| 23 var scriptCandidate = scripts[scriptId]; | 23 var scriptCandidate = scripts[scriptId]; |
| 24 if (scriptCandidate.sourceURL === url) { | 24 if (scriptCandidate.sourceURL === url) { |
| 25 script = scriptCandidate; | 25 script = scriptCandidate; |
| 26 break; | 26 break; |
| 27 } | 27 } |
| 28 } | 28 } |
| 29 | 29 |
| 30 dumpLiveLocationsCount(); | 30 dumpLiveLocationsCount(); |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 </script> | 66 </script> |
| 67 </head> | 67 </head> |
| 68 | 68 |
| 69 <body onload="runTest()"> | 69 <body onload="runTest()"> |
| 70 <p> | 70 <p> |
| 71 Tests that Linkifier works correctly. | 71 Tests that Linkifier works correctly. |
| 72 <p> | 72 <p> |
| 73 | 73 |
| 74 </body> | 74 </body> |
| 75 </html> | 75 </html> |
| OLD | NEW |