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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/sources-panel-extension-names.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 <script> 6 <script>
7 function test() 7 function test()
8 { 8 {
9 var contentScriptsNavigatorView = new WebInspector.ContentScriptsNavigatorVi ew(); 9 var contentScriptsNavigatorView = new WebInspector.ContentScriptsNavigatorVi ew();
10 contentScriptsNavigatorView.setWorkspace(WebInspector.workspace); 10 contentScriptsNavigatorView.setWorkspace(WebInspector.workspace);
11 contentScriptsNavigatorView.show(WebInspector.inspectorView.element); 11 contentScriptsNavigatorView.show(WebInspector.inspectorView.element);
12 12
13 var mockExecutionContext = { 13 var mockExecutionContext = {
14 id: 1234567, 14 id: 1234567,
15 isDefault: false, 15 isDefault: false,
16 origin: "chrome-extension://113581321345589144", 16 origin: "chrome-extension://113581321345589144",
17 name: "FibExtension" 17 name: "FibExtension"
18 }; 18 };
19 var mockContentScriptURL = mockExecutionContext.origin + "/script.js"; 19 var mockContentScriptURL = mockExecutionContext.origin + "/script.js";
20 20
21 InspectorTest.runTestSuite([ 21 InspectorTest.runTestSuite([
22 function testAddExecutionContextBeforeFile(next) 22 function testAddExecutionContextBeforeFile(next)
23 { 23 {
24 InspectorTest.runtimeModel._executionContextCreated(mockExecutionCon text); 24 InspectorTest.runtimeModel._executionContextCreated(mockExecutionCon text);
25 var contentProvider = new WebInspector.StaticContentProvider(WebInsp ector.resourceTypes.Script, "", mockContentScriptURL); 25 var contentProvider = new WebInspector.StaticContentProvider(mockCon tentScriptURL, WebInspector.resourceTypes.Script, Promise.resolve(""));
26 WebInspector.NetworkProject.forTarget(InspectorTest.mainTarget).addF ile(contentProvider, InspectorTest.mainFrame(), true); 26 WebInspector.NetworkProject.forTarget(InspectorTest.mainTarget).addF ile(contentProvider, InspectorTest.mainFrame(), true);
27 InspectorTest.dumpNavigatorView(contentScriptsNavigatorView); 27 InspectorTest.dumpNavigatorView(contentScriptsNavigatorView);
28 next(); 28 next();
29 }, 29 },
30 ]); 30 ]);
31 } 31 }
32 32
33 </script> 33 </script>
34 </head> 34 </head>
35 <body onload="runTest()"> 35 <body onload="runTest()">
36 <p>The test verifies that extension names are resolved properly in navigator vie w.</p> 36 <p>The test verifies that extension names are resolved properly in navigator vie w.</p>
37 </body> 37 </body>
38 </html> 38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698