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

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

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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 var target = InspectorTest.createWorkspaceWithTarget(true); 10 var target = InspectorTest.createWorkspaceWithTarget(true);
11 target.resourceTreeModel._frameAttached(239, target.resourceTreeModel.mainFr ame.id); 11 target.resourceTreeModel._frameAttached(239, target.resourceTreeModel.mainFr ame.id);
12 var mainFrame = target.resourceTreeModel.mainFrame; 12 var mainFrame = target.resourceTreeModel.mainFrame;
13 target.resourceTreeModel._frameNavigated({id: 239, parentId: mainFrame.id, u rl:"iframeurl.html", name: "childframe"}); 13 target.resourceTreeModel._frameNavigated({id: 239, parentId: mainFrame.id, u rl:"iframeurl.html", name: "childframe"});
14 var networkProject1 = InspectorTest.testNetworkProject; 14 var networkProject1 = InspectorTest.testNetworkProject;
15 15
16 var subframe = target.resourceTreeModel.frameForId(239); 16 var subframe = target.resourceTreeModel.frameForId(239);
17 WebInspector.targetManager = InspectorTest.testTargetManager; 17 SDK.targetManager = InspectorTest.testTargetManager;
18 WebInspector.networkMapping = InspectorTest.testNetworkMapping; 18 Bindings.networkMapping = InspectorTest.testNetworkMapping;
19 19
20 target2 = InspectorTest.createMockTarget(100); 20 target2 = InspectorTest.createMockTarget(100);
21 var networkProject2 = InspectorTest.testNetworkProject; 21 var networkProject2 = InspectorTest.testNetworkProject;
22 22
23 var sourcesNavigatorView = new WebInspector.SourcesNavigatorView(); 23 var sourcesNavigatorView = new Sources.SourcesNavigatorView();
24 sourcesNavigatorView._resetWorkspace(InspectorTest.testWorkspace); 24 sourcesNavigatorView._resetWorkspace(InspectorTest.testWorkspace);
25 sourcesNavigatorView.show(WebInspector.inspectorView.element); 25 sourcesNavigatorView.show(UI.inspectorView.element);
26 var contentScriptsNavigatorView = new WebInspector.ContentScriptsNavigatorVi ew(); 26 var contentScriptsNavigatorView = new Sources.ContentScriptsNavigatorView();
27 contentScriptsNavigatorView._resetWorkspace(InspectorTest.testWorkspace); 27 contentScriptsNavigatorView._resetWorkspace(InspectorTest.testWorkspace);
28 contentScriptsNavigatorView.show(WebInspector.inspectorView.element); 28 contentScriptsNavigatorView.show(UI.inspectorView.element);
29 29
30 var uiSourceCodes = []; 30 var uiSourceCodes = [];
31 function addUISourceCode(url, isContentScript, frame) 31 function addUISourceCode(url, isContentScript, frame)
32 { 32 {
33 var contentProvider = WebInspector.StaticContentProvider.fromString(url, WebInspector.resourceTypes.Script, ""); 33 var contentProvider = Common.StaticContentProvider.fromString(url, Commo n.resourceTypes.Script, "");
34 var uiSourceCode = networkProject1.addFile(contentProvider, frame || mai nFrame); 34 var uiSourceCode = networkProject1.addFile(contentProvider, frame || mai nFrame);
35 uiSourceCodes.push(uiSourceCode); 35 uiSourceCodes.push(uiSourceCode);
36 } 36 }
37 37
38 function addUISourceCode2(url, isContentScript) 38 function addUISourceCode2(url, isContentScript)
39 { 39 {
40 var contentProvider = WebInspector.StaticContentProvider.fromString(url, WebInspector.resourceTypes.Script, ""); 40 var contentProvider = Common.StaticContentProvider.fromString(url, Commo n.resourceTypes.Script, "");
41 var uiSourceCode = networkProject2.addFile(contentProvider, target2.reso urceTreeModel.mainFrame); 41 var uiSourceCode = networkProject2.addFile(contentProvider, target2.reso urceTreeModel.mainFrame);
42 uiSourceCodes.push(uiSourceCode); 42 uiSourceCodes.push(uiSourceCode);
43 } 43 }
44 44
45 function revealUISourceCode(uiSourceCode) 45 function revealUISourceCode(uiSourceCode)
46 { 46 {
47 sourcesNavigatorView.revealUISourceCode(uiSourceCode); 47 sourcesNavigatorView.revealUISourceCode(uiSourceCode);
48 contentScriptsNavigatorView.revealUISourceCode(uiSourceCode); 48 contentScriptsNavigatorView.revealUISourceCode(uiSourceCode);
49 } 49 }
50 50
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 </script> 136 </script>
137 137
138 </head> 138 </head>
139 <body onload="runTest()"> 139 <body onload="runTest()">
140 <p> 140 <p>
141 Tests scripts panel file selectors. 141 Tests scripts panel file selectors.
142 </p> 142 </p>
143 </body> 143 </body>
144 144
145 </html> 145 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698