| 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;
|
|
|