Chromium Code Reviews| Index: LayoutTests/http/tests/inspector/workspace-test.js |
| diff --git a/LayoutTests/http/tests/inspector/workspace-test.js b/LayoutTests/http/tests/inspector/workspace-test.js |
| index dd4c5e1688e95094ece59dcd09c949b408031892..08bc0c1112fcff9e42d9ebfd624a6fe8f1fdd8c9 100644 |
| --- a/LayoutTests/http/tests/inspector/workspace-test.js |
| +++ b/LayoutTests/http/tests/inspector/workspace-test.js |
| @@ -8,6 +8,11 @@ InspectorTest.createWorkspace = function(ignoreEvents) |
| InspectorTest.testFileSystemMapping._fileSystemMappingSetting = new InspectorTest.MockSetting({}); |
| InspectorTest.testFileSystemMapping._excludedFoldersSetting = new InspectorTest.MockSetting({}); |
| + // testNetworkMapping does not want to know about original page resources, so we don't populate it at start. |
| + var originalPopulate = WebInspector.NetworkProject.prototype._populate; |
| + function restoreAfterCalledOnce() { WebInspector.NetworkProject.prototype._populate = originalPopulate; } |
| + WebInspector.NetworkProject.prototype._populate = restoreAfterCalledOnce; |
|
yurys
2015/07/16 16:30:35
Please use InspectorTest.override instead.
dgozman
2015/07/17 14:39:16
Done.
|
| + |
| InspectorTest.testTargetManager = new WebInspector.TargetManager(); |
| InspectorTest.testWorkspace = new WebInspector.Workspace(InspectorTest.testFileSystemMapping); |
| InspectorTest.testNetworkMapping = new WebInspector.NetworkMapping(InspectorTest.testWorkspace, InspectorTest.testFileSystemMapping); |