| 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 function dumpNavigator(sourcesNavigatorView) | 9 function dumpNavigator(sourcesNavigatorView) |
| 10 { | 10 { |
| 11 InspectorTest.addResult("Navigator:"); | 11 InspectorTest.addResult("Navigator:"); |
| 12 InspectorTest.dumpNavigatorView(sourcesNavigatorView); | 12 InspectorTest.dumpNavigatorView(sourcesNavigatorView); |
| 13 } | 13 } |
| 14 | 14 |
| 15 function createNavigatorView() | 15 function createNavigatorView() |
| 16 { | 16 { |
| 17 var workspace = WebInspector.workspace; |
| 18 WebInspector.workspace = InspectorTest.testWorkspace; |
| 17 var navigatorView = new WebInspector.SourcesNavigatorView(); | 19 var navigatorView = new WebInspector.SourcesNavigatorView(); |
| 18 navigatorView._resetWorkspace(InspectorTest.testWorkspace); | 20 WebInspector.workspace = workspace; |
| 19 navigatorView.show(WebInspector.inspectorView.element); | 21 navigatorView.show(WebInspector.inspectorView.element); |
| 20 return navigatorView; | 22 return navigatorView; |
| 21 } | 23 } |
| 22 | 24 |
| 23 function createContentProvider(url) | 25 function createContentProvider(url) |
| 24 { | 26 { |
| 25 var contentProvider = WebInspector.StaticContentProvider.fromString(url,
WebInspector.resourceTypes.Script, ""); | 27 var contentProvider = WebInspector.StaticContentProvider.fromString(url,
WebInspector.resourceTypes.Script, ""); |
| 26 contentProvider.requestContent = function() | 28 contentProvider.requestContent = function() |
| 27 { | 29 { |
| 28 InspectorTest.addResult("Source requested for " + url); | 30 InspectorTest.addResult("Source requested for " + url); |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 next(); | 111 next(); |
| 110 } | 112 } |
| 111 ]); | 113 ]); |
| 112 }; | 114 }; |
| 113 </script> | 115 </script> |
| 114 </head> | 116 </head> |
| 115 <body onload="runTest()"> | 117 <body onload="runTest()"> |
| 116 <p>Tests that scripts panel UI elements work as intended.</p> | 118 <p>Tests that scripts panel UI elements work as intended.</p> |
| 117 </body> | 119 </body> |
| 118 </html> | 120 </html> |
| OLD | NEW |