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 WebInspector.showPanel("scripts"); | 10 WebInspector.showPanel("sources"); |
11 InspectorTest.createWorkspace(true); | 11 InspectorTest.createWorkspace(true); |
12 var panel = new WebInspector.ScriptsPanel(InspectorTest.testWorkspace); | 12 var panel = new WebInspector.SourcesPanel(InspectorTest.testWorkspace); |
13 var navigator = panel._navigator; | 13 var navigator = panel._navigator; |
14 | 14 |
15 var uiSourceCodes = []; | 15 var uiSourceCodes = []; |
16 function addUISourceCode(url, isContentScript) | 16 function addUISourceCode(url, isContentScript) |
17 { | 17 { |
18 var contentProvider = new WebInspector.StaticContentProvider(WebInspecto
r.resourceTypes.Script, "", "text/javascript"); | 18 var contentProvider = new WebInspector.StaticContentProvider(WebInspecto
r.resourceTypes.Script, "", "text/javascript"); |
19 var uiSourceCode = InspectorTest.testNetworkWorkspaceProvider.addFileFor
URL(url, contentProvider, false, isContentScript); | 19 var uiSourceCode = InspectorTest.testNetworkWorkspaceProvider.addFileFor
URL(url, contentProvider, false, isContentScript); |
20 uiSourceCodes.push(uiSourceCode); | 20 uiSourceCodes.push(uiSourceCode); |
21 } | 21 } |
22 | 22 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 </script> | 65 </script> |
66 | 66 |
67 </head> | 67 </head> |
68 <body onload="runTest()"> | 68 <body onload="runTest()"> |
69 <p> | 69 <p> |
70 Tests scripts sorting in the scripts panel. | 70 Tests scripts sorting in the scripts panel. |
71 </p> | 71 </p> |
72 </body> | 72 </body> |
73 | 73 |
74 </html> | 74 </html> |
OLD | NEW |