| 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 | 6 |
| 7 <script> | 7 <script> |
| 8 function test() | 8 function test() |
| 9 { | 9 { |
| 10 var target = InspectorTest.createWorkspaceWithTarget(true); | 10 var target = InspectorTest.createWorkspaceWithTarget(true); |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 var sourcesNavigatorView = new WebInspector.SourcesNavigatorView(); | 23 var sourcesNavigatorView = new WebInspector.SourcesNavigatorView(); |
| 24 sourcesNavigatorView.setWorkspace(InspectorTest.testWorkspace); | 24 sourcesNavigatorView.setWorkspace(InspectorTest.testWorkspace); |
| 25 sourcesNavigatorView.show(WebInspector.inspectorView.element); | 25 sourcesNavigatorView.show(WebInspector.inspectorView.element); |
| 26 var contentScriptsNavigatorView = new WebInspector.ContentScriptsNavigatorVi
ew(); | 26 var contentScriptsNavigatorView = new WebInspector.ContentScriptsNavigatorVi
ew(); |
| 27 contentScriptsNavigatorView.setWorkspace(InspectorTest.testWorkspace); | 27 contentScriptsNavigatorView.setWorkspace(InspectorTest.testWorkspace); |
| 28 contentScriptsNavigatorView.show(WebInspector.inspectorView.element); | 28 contentScriptsNavigatorView.show(WebInspector.inspectorView.element); |
| 29 | 29 |
| 30 var uiSourceCodes = []; | 30 var uiSourceCodes = []; |
| 31 function addUISourceCode(url, isContentScript, frame) | 31 function addUISourceCode(url, isContentScript, frame) |
| 32 { | 32 { |
| 33 var contentProvider = new WebInspector.StaticContentProvider(WebInspecto
r.resourceTypes.Script, ""); | 33 var contentProvider = new WebInspector.StaticContentProvider(WebInspecto
r.resourceTypes.Script, "", url); |
| 34 var uiSourceCode = networkProject1.addFileForURL(url, contentProvider, f
rame || mainFrame); | 34 var uiSourceCode = networkProject1.addFile(contentProvider, frame || mai
nFrame); |
| 35 uiSourceCodes.push(uiSourceCode); | 35 uiSourceCodes.push(uiSourceCode); |
| 36 } | 36 } |
| 37 | 37 |
| 38 function addUISourceCode2(url, isContentScript) | 38 function addUISourceCode2(url, isContentScript) |
| 39 { | 39 { |
| 40 var contentProvider = new WebInspector.StaticContentProvider(WebInspecto
r.resourceTypes.Script, ""); | 40 var contentProvider = new WebInspector.StaticContentProvider(WebInspecto
r.resourceTypes.Script, "", url); |
| 41 var uiSourceCode = networkProject2.addFileForURL(url, contentProvider, t
arget2.resourceTreeModel.mainFrame); | 41 var uiSourceCode = networkProject2.addFile(contentProvider, target2.reso
urceTreeModel.mainFrame); |
| 42 uiSourceCodes.push(uiSourceCode); | 42 uiSourceCodes.push(uiSourceCode); |
| 43 } | 43 } |
| 44 | 44 |
| 45 function revealUISourceCode(uiSourceCode) | 45 function revealUISourceCode(uiSourceCode) |
| 46 { | 46 { |
| 47 sourcesNavigatorView.revealUISourceCode(uiSourceCode); | 47 sourcesNavigatorView.revealUISourceCode(uiSourceCode); |
| 48 contentScriptsNavigatorView.revealUISourceCode(uiSourceCode); | 48 contentScriptsNavigatorView.revealUISourceCode(uiSourceCode); |
| 49 } | 49 } |
| 50 | 50 |
| 51 var rootURL = "http://localhost:8080/LayoutTests/inspector/debugger/"; | 51 var rootURL = "http://localhost:8080/LayoutTests/inspector/debugger/"; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 </script> | 136 </script> |
| 137 | 137 |
| 138 </head> | 138 </head> |
| 139 <body onload="runTest()"> | 139 <body onload="runTest()"> |
| 140 <p> | 140 <p> |
| 141 Tests scripts panel file selectors. | 141 Tests scripts panel file selectors. |
| 142 </p> | 142 </p> |
| 143 </body> | 143 </body> |
| 144 | 144 |
| 145 </html> | 145 </html> |
| OLD | NEW |