Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <html> | |
| 2 <head> | |
| 3 <script src="../inspector-test.js"></script> | |
| 4 <script src="../debugger-test.js"></script> | |
| 5 <script src="../workspace-test.js"></script> | |
| 6 <script src="../isolated-filesystem-test.js"></script> | |
| 7 <script src="./persistence-test.js"></script> | |
| 8 <script src="./resources/foo.js"></script> | |
| 9 <script> | |
| 10 | |
| 11 function test() | |
| 12 { | |
| 13 var fs = new InspectorTest.TestFileSystem("file:///var/www"); | |
| 14 var fsEntry = InspectorTest.addFooJSFile(fs); | |
| 15 fs.addFileMapping("http://127.0.0.1:8000", "/"); | |
| 16 fs.reportCreated(function () { }); | |
| 17 InspectorTest.waitForBinding("foo.js").then(onBindingCreated); | |
| 18 WebInspector.persistence.addEventListener(WebInspector.Persistence.Events.Bi ndingRemoved, onBindingRemoved); | |
| 19 | |
| 20 function onBindingCreated(binding) | |
| 21 { | |
| 22 InspectorTest.addResult("Binding created: " + binding); | |
| 23 InspectorTest.addResult("Renaming foo.js -> bar.js"); | |
| 24 binding.fileSystem.rename("bar.js", function() { }); | |
| 25 } | |
| 26 | |
| 27 function onBindingRemoved(event) | |
| 28 { | |
| 29 var binding = event.data; | |
|
dgozman
2016/09/23 23:03:20
Let's dump it.
lushnikov
2016/09/24 00:30:50
Done.
| |
| 30 InspectorTest.addResult("Binding successfully removed."); | |
| 31 InspectorTest.completeTest(); | |
| 32 } | |
| 33 | |
| 34 }; | |
| 35 </script> | |
| 36 </head> | |
| 37 <body onload="runTest()"> | |
| 38 <p>Verify that binding gets removed as the fileSystem file gets renamed.</p> | |
| 39 </body> | |
| 40 </html> | |
| OLD | NEW |