| Index: LayoutTests/http/tests/inspector/resources-test.js
|
| diff --git a/LayoutTests/http/tests/inspector/resources-test.js b/LayoutTests/http/tests/inspector/resources-test.js
|
| index ebe52578e3caf9e723bce0e2bd782ad77b1be478..9acfc16f70009d28741c1082c134fe57c9f44e30 100644
|
| --- a/LayoutTests/http/tests/inspector/resources-test.js
|
| +++ b/LayoutTests/http/tests/inspector/resources-test.js
|
| @@ -9,8 +9,8 @@ InspectorTest.requestURLComparer = function(r1, r2)
|
|
|
| InspectorTest.runAfterCachedResourcesProcessed = function(callback)
|
| {
|
| - if (!WebInspector.resourceTreeModel._cachedResourcesProcessed)
|
| - WebInspector.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel.EventTypes.CachedResourcesLoaded, callback);
|
| + if (!InspectorTest.resourceTreeModel._cachedResourcesProcessed)
|
| + InspectorTest.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel.EventTypes.CachedResourcesLoaded, callback);
|
| else
|
| callback();
|
| }
|
| @@ -27,13 +27,13 @@ InspectorTest.runAfterResourcesAreFinished = function(resourceURLs, callback)
|
| delete resourceURLsMap[url];
|
| }
|
| if (!Object.keys(resourceURLsMap).length) {
|
| - WebInspector.resourceTreeModel.removeEventListener(WebInspector.ResourceTreeModel.EventTypes.ResourceAdded, checkResources);
|
| + InspectorTest.resourceTreeModel.removeEventListener(WebInspector.ResourceTreeModel.EventTypes.ResourceAdded, checkResources);
|
| callback();
|
| }
|
| }
|
| checkResources();
|
| if (Object.keys(resourceURLsMap).length)
|
| - WebInspector.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel.EventTypes.ResourceAdded, checkResources);
|
| + InspectorTest.resourceTreeModel.addEventListener(WebInspector.ResourceTreeModel.EventTypes.ResourceAdded, checkResources);
|
| }
|
|
|
| InspectorTest.showResource = function(resourceURL, callback)
|
| @@ -65,7 +65,7 @@ InspectorTest.showResource = function(resourceURL, callback)
|
| InspectorTest.resourceMatchingURL = function(resourceURL)
|
| {
|
| var result = null;
|
| - WebInspector.resourceTreeModel.forAllResources(visit);
|
| + InspectorTest.resourceTreeModel.forAllResources(visit);
|
| function visit(resource)
|
| {
|
| if (resource.url.indexOf(resourceURL) !== -1) {
|
|
|