| 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 src="../../../http/tests/inspector/workspace-test.js"></script> | 5 <script src="../../../http/tests/inspector/workspace-test.js"></script> |
| 6 <script> | 6 <script> |
| 7 function test() | 7 function test() |
| 8 { | 8 { |
| 9 var defaultScriptMapping; | 9 var defaultScriptMapping; |
| 10 var target = WebInspector.debuggerModel.target(); | 10 var target = InspectorTest.debuggerModel.target(); |
| 11 | 11 |
| 12 function createResourceScriptMapping() | 12 function createResourceScriptMapping() |
| 13 { | 13 { |
| 14 InspectorTest.createWorkspace(); | 14 InspectorTest.createWorkspace(); |
| 15 InspectorTest.testTargetManager.addTarget(target); | 15 InspectorTest.testTargetManager.addTarget(target); |
| 16 defaultScriptMapping = new WebInspector.DefaultScriptMapping(WebInspecto
r.debuggerModel, InspectorTest.testWorkspace, InspectorTest.testDebuggerWorkspac
eBinding); | 16 defaultScriptMapping = new WebInspector.DefaultScriptMapping(InspectorTe
st.debuggerModel, InspectorTest.testWorkspace, InspectorTest.testDebuggerWorkspa
ceBinding); |
| 17 var resourceScriptMapping = new WebInspector.ResourceScriptMapping(WebIn
spector.debuggerModel, InspectorTest.testWorkspace, InspectorTest.testNetworkMap
ping, InspectorTest.testDebuggerWorkspaceBinding); | 17 var resourceScriptMapping = new WebInspector.ResourceScriptMapping(Inspe
ctorTest.debuggerModel, InspectorTest.testWorkspace, InspectorTest.testNetworkMa
pping, InspectorTest.testDebuggerWorkspaceBinding); |
| 18 return resourceScriptMapping; | 18 return resourceScriptMapping; |
| 19 } | 19 } |
| 20 | 20 |
| 21 function uiLocation(script, lineNumber, columnNumber) | 21 function uiLocation(script, lineNumber, columnNumber) |
| 22 { | 22 { |
| 23 var location = script.target().debuggerModel.createRawLocation(script, l
ineNumber, columnNumber); | 23 var location = script.target().debuggerModel.createRawLocation(script, l
ineNumber, columnNumber); |
| 24 return InspectorTest.testDebuggerWorkspaceBinding.rawLocationToUILocatio
n(location); | 24 return InspectorTest.testDebuggerWorkspaceBinding.rawLocationToUILocatio
n(location); |
| 25 } | 25 } |
| 26 | 26 |
| 27 function resetModels() | 27 function resetModels() |
| 28 { | 28 { |
| 29 WebInspector.debuggerModel._reset(); | 29 InspectorTest.debuggerModel._reset(); |
| 30 } | 30 } |
| 31 | 31 |
| 32 InspectorTest.runTestSuite([ | 32 InspectorTest.runTestSuite([ |
| 33 function testScriptWithPendingResource(next) | 33 function testScriptWithPendingResource(next) |
| 34 { | 34 { |
| 35 var script; | 35 var script; |
| 36 resetModels(); | 36 resetModels(); |
| 37 var resourceScriptMapping = createResourceScriptMapping(); | 37 var resourceScriptMapping = createResourceScriptMapping(); |
| 38 var url = "foo.js"; | 38 var url = "foo.js"; |
| 39 step1(); | 39 step1(); |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 216 } | 216 } |
| 217 } | 217 } |
| 218 ]); | 218 ]); |
| 219 }; | 219 }; |
| 220 </script> | 220 </script> |
| 221 </head> | 221 </head> |
| 222 <body onload="runTest()"> | 222 <body onload="runTest()"> |
| 223 <p>Tests ResourceScriptMapping class.</p> | 223 <p>Tests ResourceScriptMapping class.</p> |
| 224 </body> | 224 </body> |
| 225 </html> | 225 </html> |
| OLD | NEW |