| 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 26 matching lines...) Expand all Loading... |
| 37 return InspectorTest.testWorkspace; | 37 return InspectorTest.testWorkspace; |
| 38 } | 38 } |
| 39 | 39 |
| 40 function addNetworkFile(workspace, url) | 40 function addNetworkFile(workspace, url) |
| 41 { | 41 { |
| 42 return InspectorTest.testNetworkProject.addFileForURL(url, createContent
Provider(url)); | 42 return InspectorTest.testNetworkProject.addFileForURL(url, createContent
Provider(url)); |
| 43 } | 43 } |
| 44 | 44 |
| 45 function addDebuggerFile(workspace, url) | 45 function addDebuggerFile(workspace, url) |
| 46 { | 46 { |
| 47 var path = InspectorTest.testDebuggerProjectDelegate.addContentProvider(
"", url, url, url, createContentProvider(url)); | 47 var path = InspectorTest.testDebuggerProjectDelegate.addContentProvider(
"", url, url, createContentProvider(url)); |
| 48 return InspectorTest.testWorkspace.uiSourceCode("debugger:", path) | 48 return InspectorTest.testWorkspace.uiSourceCode("debugger:", path) |
| 49 } | 49 } |
| 50 | 50 |
| 51 InspectorTest.runTestSuite([ | 51 InspectorTest.runTestSuite([ |
| 52 function testInitialLoad(next) | 52 function testInitialLoad(next) |
| 53 { | 53 { |
| 54 var workspace = createMockWorkspace(); | 54 var workspace = createMockWorkspace(); |
| 55 | 55 |
| 56 addNetworkFile(workspace, "foobar.js"); | 56 addNetworkFile(workspace, "foobar.js"); |
| 57 | 57 |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 next(); | 107 next(); |
| 108 } | 108 } |
| 109 ]); | 109 ]); |
| 110 }; | 110 }; |
| 111 </script> | 111 </script> |
| 112 </head> | 112 </head> |
| 113 <body onload="runTest()"> | 113 <body onload="runTest()"> |
| 114 <p>Tests that scripts panel UI elements work as intended.</p> | 114 <p>Tests that scripts panel UI elements work as intended.</p> |
| 115 </body> | 115 </body> |
| 116 </html> | 116 </html> |
| OLD | NEW |