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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/last-execution-context.html

Issue 2137773002: [DevTools] Replace the target type with capabilities (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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/workspace-test.js"></script> 4 <script src="../../../http/tests/inspector/workspace-test.js"></script>
5 <script> 5 <script>
6 6
7 function test() 7 function test()
8 { 8 {
9 InspectorTest.createWorkspace(true); 9 InspectorTest.createWorkspace(true);
10 var context = new WebInspector.Context(); 10 var context = new WebInspector.Context();
(...skipping 15 matching lines...) Expand all
26 26
27 InspectorTest.addResult(""); 27 InspectorTest.addResult("");
28 InspectorTest.addResult("Adding page target"); 28 InspectorTest.addResult("Adding page target");
29 var pageTarget = InspectorTest.createMockTarget("page-target"); 29 var pageTarget = InspectorTest.createMockTarget("page-target");
30 pageTarget.runtimeModel._executionContextCreated({id: "cs1", isDefault: fals e, origin: "origin", name: "contentScript1", frameId: "42"}); 30 pageTarget.runtimeModel._executionContextCreated({id: "cs1", isDefault: fals e, origin: "origin", name: "contentScript1", frameId: "42"});
31 pageTarget.runtimeModel._executionContextCreated({id: "if1", isDefault: true , origin: "origin", name: "iframeContext1", frameId: "iframe1"}); 31 pageTarget.runtimeModel._executionContextCreated({id: "if1", isDefault: true , origin: "origin", name: "iframeContext1", frameId: "iframe1"});
32 pageTarget.runtimeModel._executionContextCreated({id: "p1", isDefault: true, origin: "origin", name: "pageContext1Name", frameId: "42"}); 32 pageTarget.runtimeModel._executionContextCreated({id: "p1", isDefault: true, origin: "origin", name: "pageContext1Name", frameId: "42"});
33 33
34 InspectorTest.addResult(""); 34 InspectorTest.addResult("");
35 InspectorTest.addResult("Adding sw target"); 35 InspectorTest.addResult("Adding sw target");
36 var swTarget = InspectorTest.createMockTarget("sw-target", null, WebInspecto r.Target.Type.Worker); 36 var swTarget = InspectorTest.createMockTarget("sw-target", null, WebInspecto r.Target.Capability.Network | WebInspector.Target.Capability.Worker);
37 swTarget.runtimeModel._executionContextCreated({id: "sw1", isDefault: true, origin: "origin", name: "swContext1Name", frameId: ""}); 37 swTarget.runtimeModel._executionContextCreated({id: "sw1", isDefault: true, origin: "origin", name: "swContext1Name", frameId: ""});
38 38
39 InspectorTest.addResult(""); 39 InspectorTest.addResult("");
40 InspectorTest.addResult("Removing page main frame"); 40 InspectorTest.addResult("Removing page main frame");
41 pageTarget.runtimeModel._executionContextDestroyed("p1"); 41 pageTarget.runtimeModel._executionContextDestroyed("p1");
42 42
43 InspectorTest.addResult(""); 43 InspectorTest.addResult("");
44 InspectorTest.addResult("Readding page main frame"); 44 InspectorTest.addResult("Readding page main frame");
45 pageTarget.runtimeModel._executionContextCreated({id: "p2", isDefault: true, origin: "origin", name: "pageContext1Name", frameId: "42"}); 45 pageTarget.runtimeModel._executionContextCreated({id: "p2", isDefault: true, origin: "origin", name: "pageContext1Name", frameId: "42"});
46 46
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 </script> 94 </script>
95 </head> 95 </head>
96 96
97 <body onload="runTest()"> 97 <body onload="runTest()">
98 <p> 98 <p>
99 Tests how execution context and target are selected. 99 Tests how execution context and target are selected.
100 </p> 100 </p>
101 101
102 </body> 102 </body>
103 </html> 103 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698