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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/scripts-sorting.html

Issue 2536733004: [DevTools] Remove workspace-test.js part4. (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/scripts-sorting.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/scripts-sorting.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/scripts-sorting.html
index 652b1589233d29dc6fb16afd0c6027aba1dc315e..df70caa4675d025bdd8d30893cf558e8aee91811 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/scripts-sorting.html
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/scripts-sorting.html
@@ -2,7 +2,6 @@
<head>
<script src="../../../http/tests/inspector/inspector-test.js"></script>
<script src="../../../http/tests/inspector/debugger-test.js"></script>
-<script src="../../../http/tests/inspector/workspace-test.js"></script>
<script>
function test()
@@ -10,20 +9,25 @@ function test()
function createNavigatorView(constructor)
{
var navigatorView = new constructor();
- navigatorView._resetWorkspace(InspectorTest.testWorkspace);
navigatorView.show(UI.inspectorView.element);
return navigatorView;
}
- InspectorTest.createWorkspaceWithTarget(true);
sourcesNavigatorView = createNavigatorView(Sources.SourcesNavigatorView);
contentScriptsNavigatorView = createNavigatorView(Sources.ContentScriptsNavigatorView);
+ Bindings.NetworkProject.forTarget(InspectorTest.mainTarget)._reset();
+
+ var target2 = InspectorTest.createMockTarget("mock-target-1");
+ SDK.ResourceTreeModel.fromTarget(target2)._cachedResourcesProcessed = true;
+ SDK.ResourceTreeModel.fromTarget(target2)._frameAttached("42", 0);
+ var frame = SDK.ResourceTreeModel.fromTarget(target2).mainFrame;
+
var uiSourceCodes = [];
function addUISourceCode(url, isContentScript)
{
var contentProvider = Common.StaticContentProvider.fromString(url, Common.resourceTypes.Script, "");
- var uiSourceCode = InspectorTest.testNetworkProject.addFile(contentProvider, InspectorTest.mainFrame(), isContentScript);
+ var uiSourceCode = Bindings.NetworkProject.forTarget(target2).addFile(contentProvider, frame, isContentScript);
uiSourceCodes.push(uiSourceCode);
}

Powered by Google App Engine
This is Rietveld 408576698