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

Unified Diff: LayoutTests/http/tests/inspector/workspace-test.js

Issue 1238103002: [DevTools] Do not report edited resources via Page.getResourceContent. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed comment Created 5 years, 5 months 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: 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..64dbdf3c85f02856c765c63fe9cb2ab30b37d873 100644
--- a/LayoutTests/http/tests/inspector/workspace-test.js
+++ b/LayoutTests/http/tests/inspector/workspace-test.js
@@ -8,6 +8,9 @@ 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.
+ InspectorTest.override(WebInspector.NetworkProject.prototype, "_populate", function() {});
+
InspectorTest.testTargetManager = new WebInspector.TargetManager();
InspectorTest.testWorkspace = new WebInspector.Workspace(InspectorTest.testFileSystemMapping);
InspectorTest.testNetworkMapping = new WebInspector.NetworkMapping(InspectorTest.testWorkspace, InspectorTest.testFileSystemMapping);

Powered by Google App Engine
This is Rietveld 408576698