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

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

Issue 2349343002: DevTools: introduce persistence/ module (Closed)
Patch Set: reupload Created 4 years, 3 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 3929c0ddde89e814721e9dd008ad67cc3a0ea132..5d0ed1ab79f1e57e526b4cf5c754b58ccea8a2b1 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
@@ -106,6 +106,13 @@ InspectorTest.TestFileSystem.Entry.prototype = {
return child;
},
+ setContent: function(content)
+ {
+ this.content = new Blob([content], {type: 'text/plain'});
+ var fullPath = this._fileSystem.fileSystemPath + this.fullPath;
+ InspectorFrontendHost.events.dispatchEventToListeners(InspectorFrontendHostAPI.Events.FileSystemFilesChanged, [fullPath]);
+ },
+
createReader: function()
{
return new InspectorTest.TestFileSystem.Reader(this._children);

Powered by Google App Engine
This is Rietveld 408576698