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

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

Issue 2651043006: DevTools: Remove files in the navigator when they are deleted externally (Closed)
Patch Set: fix test Created 3 years, 11 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: third_party/WebKit/LayoutTests/http/tests/inspector/isolated-filesystem-test.js
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/isolated-filesystem-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/isolated-filesystem-test.js
index ac5d00a0d2678633a1658e85a9c015ca4f89fe96..745022350f9e0f642a854f7c9c1705a8c1c51887 100644
--- a/third_party/WebKit/LayoutTests/http/tests/inspector/isolated-filesystem-test.js
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/isolated-filesystem-test.js
@@ -107,7 +107,9 @@ InspectorTest.TestFileSystem.Entry.prototype = {
this._children.splice(index, 1);
delete this._childrenMap[child.name];
child.parent = null;
- InspectorFrontendHost.events.dispatchEventToListeners(InspectorFrontendHostAPI.Events.FileSystemFilesChanged, [fullPath]);
+ InspectorFrontendHost.events.dispatchEventToListeners(
+ InspectorFrontendHostAPI.Events.FileSystemFilesChangedAddedRemoved,
+ {changed: [], added: [], removed: [fullPath]});
success();
},
@@ -128,7 +130,9 @@ InspectorTest.TestFileSystem.Entry.prototype = {
child.parent = this;
child.content = new Blob([content], {type: 'text/plain'});
var fullPath = this._fileSystem.fileSystemPath + child.fullPath;
- InspectorFrontendHost.events.dispatchEventToListeners(InspectorFrontendHostAPI.Events.FileSystemFilesChanged, [fullPath]);
+ InspectorFrontendHost.events.dispatchEventToListeners(
+ InspectorFrontendHostAPI.Events.FileSystemFilesChangedAddedRemoved,
+ {changed: [], added: [fullPath], removed: []});
return child;
},
@@ -137,7 +141,9 @@ InspectorTest.TestFileSystem.Entry.prototype = {
this.content = new Blob([content], {type: 'text/plain'});
this._timestamp += 1000;
var fullPath = this._fileSystem.fileSystemPath + this.fullPath;
- InspectorFrontendHost.events.dispatchEventToListeners(InspectorFrontendHostAPI.Events.FileSystemFilesChanged, [fullPath]);
+ InspectorFrontendHost.events.dispatchEventToListeners(
+ InspectorFrontendHostAPI.Events.FileSystemFilesChangedAddedRemoved,
+ {changed: [fullPath], added: [], removed: []});
},
createReader: function()
« no previous file with comments | « chrome/browser/devtools/devtools_ui_bindings.cc ('k') | third_party/WebKit/LayoutTests/inspector/file-system-project.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698