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

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

Powered by Google App Engine
This is Rietveld 408576698