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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/resources-test.js

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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/http/tests/inspector/resources-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/resources-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/resources-test.js
index 3137be54cdefd4ead8947b4f16384e49bb023b8f..16359f45c9594a77e76da88ab20940ce520855be 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/resources-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/resources-test.js
@@ -11,7 +11,7 @@ InspectorTest.requestURLComparer = function(r1, r2)
InspectorTest.runAfterCachedResourcesProcessed = function(callback)
{
if (!InspectorTest.resourceTreeModel._cachedResourcesProcessed)
- InspectorTest.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel.Events.CachedResourcesLoaded, callback);
+ InspectorTest.resourceTreeModel.addEventListener(SDK.ResourceTreeModel.Events.CachedResourcesLoaded, callback);
else
callback();
}
@@ -28,13 +28,13 @@ InspectorTest.runAfterResourcesAreFinished = function(resourceURLs, callback)
resourceURLsMap.delete(url);
}
if (!resourceURLsMap.size) {
- InspectorTest.resourceTreeModel.removeEventListener(WebInspector.ResourceTreeModel.Events.ResourceAdded, checkResources);
+ InspectorTest.resourceTreeModel.removeEventListener(SDK.ResourceTreeModel.Events.ResourceAdded, checkResources);
callback();
}
}
checkResources();
if (resourceURLsMap.size)
- InspectorTest.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel.Events.ResourceAdded, checkResources);
+ InspectorTest.resourceTreeModel.addEventListener(SDK.ResourceTreeModel.Events.ResourceAdded, checkResources);
}
InspectorTest.showResource = function(resourceURL, callback)
@@ -53,8 +53,8 @@ InspectorTest.showResource = function(resourceURL, callback)
var resource = InspectorTest.resourceMatchingURL(resourceURL);
if (!resource)
return;
- WebInspector.panels.resources.showResource(resource, 1);
- var sourceFrame = WebInspector.panels.resources._resourceViewForResource(resource);
+ UI.panels.resources.showResource(resource, 1);
+ var sourceFrame = UI.panels.resources._resourceViewForResource(resource);
if (sourceFrame.loaded)
callbackWrapper(sourceFrame);
else
@@ -79,17 +79,17 @@ InspectorTest.resourceMatchingURL = function(resourceURL)
InspectorTest.databaseModel = function()
{
- return WebInspector.DatabaseModel.fromTarget(InspectorTest.mainTarget);
+ return Resources.DatabaseModel.fromTarget(InspectorTest.mainTarget);
}
InspectorTest.domStorageModel = function()
{
- return WebInspector.DOMStorageModel.fromTarget(InspectorTest.mainTarget);
+ return Resources.DOMStorageModel.fromTarget(InspectorTest.mainTarget);
}
InspectorTest.indexedDBModel = function()
{
- return WebInspector.IndexedDBModel.fromTarget(InspectorTest.mainTarget);
+ return Resources.IndexedDBModel.fromTarget(InspectorTest.mainTarget);
}
}

Powered by Google App Engine
This is Rietveld 408576698