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

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

Issue 2697403003: DevTools: "Delete File" in navigator should actually delete a file (Closed)
Patch Set: address comments Created 3 years, 10 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/filesystem-delete-file.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 745022350f9e0f642a854f7c9c1705a8c1c51887..0cd38c9cca03c6384a4ae077a360e498a04f1d61 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
@@ -14,6 +14,20 @@ InspectorTest.TestFileSystem = function(fileSystemPath)
InspectorTest.TestFileSystem._instances = {};
InspectorTest.TestFileSystem.prototype = {
+ dumpAsText: function() {
+ var result = [];
+ dfs(this.root, '');
+ result[0] = this.fileSystemPath;
+ return result.join('\n');
+
+ function dfs(node, indent) {
+ result.push(indent + node.name);
+ var newIndent = indent + ' ';
+ for (var child of node._children)
+ dfs(child, newIndent);
+ }
+ },
+
reportCreated: function(callback)
{
var fileSystemPath = this.fileSystemPath;
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/http/tests/inspector/persistence/filesystem-delete-file.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698