Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(958)

Side by Side Diff: LayoutTests/inspector/debugger/navigator-view.html

Issue 23484056: [DevTools] Renaming Scripts panel to Sources panel (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modified missed files Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
23 function dumpNavigator() 23 function dumpNavigator()
24 { 24 {
25 InspectorTest.dumpScriptsNavigator(navigator, " "); 25 InspectorTest.dumpScriptsNavigator(navigator, " ");
26 } 26 }
27 27
28 function expandDomains(tree) 28 function expandDomains(tree)
29 { 29 {
30 var children = navigator._scriptsView._scriptsTree.children; 30 var children = navigator._sourcesView._scriptsTree.children;
31 for (var i = 0; i < children.length; ++i) 31 for (var i = 0; i < children.length; ++i)
32 children[i].expand(); 32 children[i].expand();
33 } 33 }
34 34
35 var rootURL = "http://localhost:8080/LayoutTests/inspector/debugger/"; 35 var rootURL = "http://localhost:8080/LayoutTests/inspector/debugger/";
36 InspectorTest.addResult("Adding first resource:"); 36 InspectorTest.addResult("Adding first resource:");
37 addUISourceCode(rootURL + "foo/bar/script.js", false); 37 addUISourceCode(rootURL + "foo/bar/script.js", false);
38 dumpNavigator(); 38 dumpNavigator();
39 InspectorTest.addResult("Expanding domains:"); 39 InspectorTest.addResult("Expanding domains:");
40 expandDomains(navigator._scriptsView._scriptsTree); 40 expandDomains(navigator._sourcesView._scriptsTree);
41 dumpNavigator(); 41 dumpNavigator();
42 InspectorTest.addResult("Adding second resource:"); 42 InspectorTest.addResult("Adding second resource:");
43 addUISourceCode(rootURL + "foo/bar/script.js?a=2", false); 43 addUISourceCode(rootURL + "foo/bar/script.js?a=2", false);
44 dumpNavigator(); 44 dumpNavigator();
45 InspectorTest.addResult("Adding other resources:"); 45 InspectorTest.addResult("Adding other resources:");
46 addUISourceCode(rootURL + "foo/bar/script.js?a=1", false); 46 addUISourceCode(rootURL + "foo/bar/script.js?a=1", false);
47 addUISourceCode(rootURL + "foo/baz/script.js", false); 47 addUISourceCode(rootURL + "foo/baz/script.js", false);
48 dumpNavigator(); 48 dumpNavigator();
49 49
50 InspectorTest.addResult("Adding content scripts and some random resources:") ; 50 InspectorTest.addResult("Adding content scripts and some random resources:") ;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 </script> 96 </script>
97 97
98 </head> 98 </head>
99 <body onload="runTest()"> 99 <body onload="runTest()">
100 <p> 100 <p>
101 Tests scripts panel file selectors. 101 Tests scripts panel file selectors.
102 </p> 102 </p>
103 </body> 103 </body>
104 104
105 </html> 105 </html>
OLDNEW
« no previous file with comments | « LayoutTests/inspector/debugger/live-edit-no-reveal.html ('k') | LayoutTests/inspector/debugger/properties-special.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698