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

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

Issue 2533073003: [DevTools] Remove workspace-test.js part1. (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/last-execution-context.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/last-execution-context.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/last-execution-context.html
index ae65b4efe3c3c675bba10531d6e909d070557ec6..ec5b0923fa7c88f0881422f5c020c23180ef9e89 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/last-execution-context.html
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/last-execution-context.html
@@ -1,16 +1,14 @@
<html>
<head>
<script src="../../../http/tests/inspector/inspector-test.js"></script>
-<script src="../../../http/tests/inspector/workspace-test.js"></script>
<script>
function test()
{
- InspectorTest.createWorkspace(true);
var context = new UI.Context();
context.addFlavorChangeListener(SDK.ExecutionContext, executionContextChanged, this);
context.addFlavorChangeListener(SDK.Target, targetChanged, this);
- new Components.ExecutionContextSelector(InspectorTest.testTargetManager, context);
+ new Components.ExecutionContextSelector(SDK.targetManager, context);
function executionContextChanged(event)
{
@@ -23,17 +21,21 @@ function test()
InspectorTest.addResult("Target selected: " + event.data.name());
}
+ InspectorTest.runtimeModel._executionContextsCleared();
+
InspectorTest.addResult("");
InspectorTest.addResult("Adding page target");
var pageTarget = InspectorTest.createMockTarget("page-target");
+ SDK.ResourceTreeModel.fromTarget(pageTarget)._cachedResourcesProcessed = true;
+ SDK.ResourceTreeModel.fromTarget(pageTarget)._frameAttached("42", 0);
pageTarget.runtimeModel._executionContextCreated({id: "cs1", auxData: { isDefault: false, frameId: "42" }, origin: "origin", name: "contentScript1"});
pageTarget.runtimeModel._executionContextCreated({id: "if1", auxData: { isDefault: true, frameId: "iframe1" }, origin: "origin", name: "iframeContext1"});
pageTarget.runtimeModel._executionContextCreated({id: "p1", auxData: { isDefault: true, frameId: "42" }, origin: "origin", name: "pageContext1Name"});
InspectorTest.addResult("");
InspectorTest.addResult("Adding sw target");
- var swTarget = InspectorTest.createMockTarget("sw-target", null, SDK.Target.Capability.Network | SDK.Target.Capability.Worker);
+ var swTarget = InspectorTest.createMockTarget("sw-target", SDK.Target.Capability.Network | SDK.Target.Capability.Worker);
swTarget.runtimeModel._executionContextCreated({id: "sw1", auxData: { isDefault: true, frameId: "" }, origin: "origin", name: "swContext1Name"});
InspectorTest.addResult("");

Powered by Google App Engine
This is Rietveld 408576698