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

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

Issue 1954423002: DevTools: introduce CSSStyleSheetHeader.originalContentProvider() method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simplify-network-project
Patch Set: address comments Created 4 years, 7 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 var target = InspectorTest.createWorkspaceWithTarget(true); 10 var target = InspectorTest.createWorkspaceWithTarget(true);
(...skipping 12 matching lines...) Expand all
23 var sourcesNavigatorView = new WebInspector.SourcesNavigatorView(); 23 var sourcesNavigatorView = new WebInspector.SourcesNavigatorView();
24 sourcesNavigatorView.setWorkspace(InspectorTest.testWorkspace); 24 sourcesNavigatorView.setWorkspace(InspectorTest.testWorkspace);
25 sourcesNavigatorView.show(WebInspector.inspectorView.element); 25 sourcesNavigatorView.show(WebInspector.inspectorView.element);
26 var contentScriptsNavigatorView = new WebInspector.ContentScriptsNavigatorVi ew(); 26 var contentScriptsNavigatorView = new WebInspector.ContentScriptsNavigatorVi ew();
27 contentScriptsNavigatorView.setWorkspace(InspectorTest.testWorkspace); 27 contentScriptsNavigatorView.setWorkspace(InspectorTest.testWorkspace);
28 contentScriptsNavigatorView.show(WebInspector.inspectorView.element); 28 contentScriptsNavigatorView.show(WebInspector.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 = new WebInspector.StaticContentProvider(WebInspecto r.resourceTypes.Script, "", url); 33 var contentProvider = new WebInspector.StaticContentProvider(url, WebIns pector.resourceTypes.Script, Promise.resolve(""));
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 = new WebInspector.StaticContentProvider(WebInspecto r.resourceTypes.Script, "", url); 40 var contentProvider = new WebInspector.StaticContentProvider(url, WebIns pector.resourceTypes.Script, Promise.resolve(""));
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