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

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

Issue 2136763002: DevTools: Sort execution contexts in nested frames (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix merge conflict 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 InspectorTest.addResult(""); 47 InspectorTest.addResult("");
48 InspectorTest.addResult("Switching to sw target"); 48 InspectorTest.addResult("Switching to sw target");
49 context.setFlavor(WebInspector.Target, swTarget); 49 context.setFlavor(WebInspector.Target, swTarget);
50 50
51 InspectorTest.addResult(""); 51 InspectorTest.addResult("");
52 InspectorTest.addResult("Switching to page target"); 52 InspectorTest.addResult("Switching to page target");
53 context.setFlavor(WebInspector.Target, pageTarget); 53 context.setFlavor(WebInspector.Target, pageTarget);
54 54
55 InspectorTest.addResult(""); 55 InspectorTest.addResult("");
56 InspectorTest.addResult("User selected content script"); 56 InspectorTest.addResult("User selected content script");
57 context.setFlavor(WebInspector.ExecutionContext, pageTarget.runtimeModel.exe cutionContexts()[0]); 57 context.setFlavor(WebInspector.ExecutionContext, pageTarget.runtimeModel.exe cutionContexts()[2]);
58 58
59 InspectorTest.addResult(""); 59 InspectorTest.addResult("");
60 InspectorTest.addResult("Switching to sw target"); 60 InspectorTest.addResult("Switching to sw target");
61 context.setFlavor(WebInspector.Target, swTarget); 61 context.setFlavor(WebInspector.Target, swTarget);
62 62
63 InspectorTest.addResult(""); 63 InspectorTest.addResult("");
64 InspectorTest.addResult("Switching to page target"); 64 InspectorTest.addResult("Switching to page target");
65 context.setFlavor(WebInspector.Target, pageTarget); 65 context.setFlavor(WebInspector.Target, pageTarget);
66 66
67 InspectorTest.addResult(""); 67 InspectorTest.addResult("");
68 InspectorTest.addResult("User selected iframe1"); 68 InspectorTest.addResult("User selected iframe1");
69 context.setFlavor(WebInspector.ExecutionContext, pageTarget.runtimeModel.exe cutionContexts()[1]); 69 context.setFlavor(WebInspector.ExecutionContext, pageTarget.runtimeModel.exe cutionContexts()[0]);
70 70
71 InspectorTest.addResult(""); 71 InspectorTest.addResult("");
72 InspectorTest.addResult("Switching to sw target"); 72 InspectorTest.addResult("Switching to sw target");
73 context.setFlavor(WebInspector.Target, swTarget); 73 context.setFlavor(WebInspector.Target, swTarget);
74 74
75 InspectorTest.addResult(""); 75 InspectorTest.addResult("");
76 InspectorTest.addResult("Switching to page target"); 76 InspectorTest.addResult("Switching to page target");
77 context.setFlavor(WebInspector.Target, pageTarget); 77 context.setFlavor(WebInspector.Target, pageTarget);
78 78
79 InspectorTest.addResult(""); 79 InspectorTest.addResult("");
(...skipping 14 matching lines...) Expand all
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