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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/inspector/persistence/filesystem-delete-file.html

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
Index: third_party/WebKit/LayoutTests/http/tests/inspector/persistence/filesystem-delete-file.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/filesystem-delete-file.html b/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/filesystem-delete-file.html
new file mode 100644
index 0000000000000000000000000000000000000000..3d4fae14c71ce7398f5155cc7889f91d6f5ed3ad
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/http/tests/inspector/persistence/filesystem-delete-file.html
@@ -0,0 +1,31 @@
+<html>
+<head>
+<script src="../inspector-test.js"></script>
+<script src="../isolated-filesystem-test.js"></script>
+<script src="./persistence-test.js"></script>
+<script src="./automapping-test.js"></script>
+<script>
+
+function test()
+{
+ var fs = new InspectorTest.TestFileSystem("file:///var/www");
+ InspectorTest.addFiles(fs, {
+ "script.js": { content: "testme" },
+ "bar.js": { content: "another" },
+ });
+ fs.reportCreated(function() { });
+ InspectorTest.waitForUISourceCode("script.js").then(onUISourceCode);
+
+ function onUISourceCode(uiSourceCode) {
+ InspectorTest.addResult("BEFORE:\n" + fs.dumpAsText());
+ uiSourceCode.remove();
+ InspectorTest.addResult("\nAFTER:\n" + fs.dumpAsText());
+ InspectorTest.completeTest();
+ }
+}
+</script>
+</head>
+<body onload="runTest()">
+<p>Verifies that uiSourceCode.delete actually deltes file from IsolatedFileSystem.</p>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698