| 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 { |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 function addNetworkFile(workspace, url) | 41 function addNetworkFile(workspace, url) |
| 42 { | 42 { |
| 43 return InspectorTest.testNetworkProject.addFileForURL(url, createContent
Provider(url), InspectorTest.mainFrame()); | 43 return InspectorTest.testNetworkProject.addFileForURL(url, createContent
Provider(url), InspectorTest.mainFrame()); |
| 44 } | 44 } |
| 45 | 45 |
| 46 function addDebuggerFile(workspace, url) | 46 function addDebuggerFile(workspace, url) |
| 47 { | 47 { |
| 48 var uiSourceCode = InspectorTest.testDebuggerProject.createUISourceCode(
url, WebInspector.resourceTypes.Script); | 48 var uiSourceCode = InspectorTest.testDebuggerProject.createUISourceCode(
url, WebInspector.resourceTypes.Script); |
| 49 InspectorTest.testDebuggerProject.addUISourceCodeWithProvider(uiSourceCo
de, createContentProvider(url)); | 49 InspectorTest.testDebuggerProject.addUISourceCodeWithProvider(uiSourceCo
de, createContentProvider(url)); |
| 50 return InspectorTest.testWorkspace.uiSourceCode("debugger:", uiSourceCod
e.path()); | 50 return InspectorTest.testWorkspace.uiSourceCode("debugger:", uiSourceCod
e.url()); |
| 51 } | 51 } |
| 52 | 52 |
| 53 InspectorTest.runTestSuite([ | 53 InspectorTest.runTestSuite([ |
| 54 function testInitialLoad(next) | 54 function testInitialLoad(next) |
| 55 { | 55 { |
| 56 var workspace = createMockWorkspace(); | 56 var workspace = createMockWorkspace(); |
| 57 | 57 |
| 58 addNetworkFile(workspace, "foobar.js"); | 58 addNetworkFile(workspace, "foobar.js"); |
| 59 | 59 |
| 60 var sourcesNavigatorView = createNavigatorView(); | 60 var sourcesNavigatorView = createNavigatorView(); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 next(); | 109 next(); |
| 110 } | 110 } |
| 111 ]); | 111 ]); |
| 112 }; | 112 }; |
| 113 </script> | 113 </script> |
| 114 </head> | 114 </head> |
| 115 <body onload="runTest()"> | 115 <body onload="runTest()"> |
| 116 <p>Tests that scripts panel UI elements work as intended.</p> | 116 <p>Tests that scripts panel UI elements work as intended.</p> |
| 117 </body> | 117 </body> |
| 118 </html> | 118 </html> |
| OLD | NEW |