| OLD | NEW |
| (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> |
| OLD | NEW |