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

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

Issue 2780933003: DevTools: support UISourceCode rename in automapping (Closed)
Patch Set: fix test Created 3 years, 9 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/persistence/automapping-absolute-paths.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f4db26c6a10cb47986ff86b65c75936cc2a7c5b5..0b5e807d4203493d94923e675cbd021ffff15577 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
@@ -214,9 +214,11 @@ InspectorTest.TestFileSystem.Entry.prototype = {
moveTo: function(parent, newName, callback, errorCallback)
{
this._parent._children.remove(this);
+ delete this._parent._childrenMap[this.name]
this._parent = parent;
this._parent._children.push(this);
this.name = newName;
+ this._parent._childrenMap[this.name] = this;
callback(this);
},
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/persistence/automapping-absolute-paths.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698