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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../inspector-test.js"></script>
4 <script src="../isolated-filesystem-test.js"></script>
5 <script src="./persistence-test.js"></script>
6 <script src="./automapping-test.js"></script>
7 <script>
8
9 function test()
10 {
11 var fs = new InspectorTest.TestFileSystem("file:///var/www");
12 InspectorTest.addFiles(fs, {
13 "script.js": { content: "testme" },
14 "bar.js": { content: "another" },
15 });
16 fs.reportCreated(function() { });
17 InspectorTest.waitForUISourceCode("script.js").then(onUISourceCode);
18
19 function onUISourceCode(uiSourceCode) {
20 InspectorTest.addResult("BEFORE:\n" + fs.dumpAsText());
21 uiSourceCode.remove();
22 InspectorTest.addResult("\nAFTER:\n" + fs.dumpAsText());
23 InspectorTest.completeTest();
24 }
25 }
26 </script>
27 </head>
28 <body onload="runTest()">
29 <p>Verifies that uiSourceCode.delete actually deltes file from IsolatedFileSyste m.</p>
30 </body>
31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698