| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../inspector-test.js"></script> | 3 <script src="../inspector-test.js"></script> |
| 4 <script src="../debugger-test.js"></script> | 4 <script src="../debugger-test.js"></script> |
| 5 <script src="../workspace-test.js"></script> | 5 <script src="../workspace-test.js"></script> |
| 6 <script src="../isolated-filesystem-test.js"></script> | 6 <script src="../isolated-filesystem-test.js"></script> |
| 7 <script src="./persistence-test.js"></script> | 7 <script src="./persistence-test.js"></script> |
| 8 <script src="./resources/foo.js"></script> | 8 <script src="./resources/foo.js"></script> |
| 9 <script> | 9 <script> |
| 10 | 10 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 | 44 |
| 45 function onBindingCreated(binding) | 45 function onBindingCreated(binding) |
| 46 { | 46 { |
| 47 InspectorTest.dumpNavigatorView(sourcesNavigator); | 47 InspectorTest.dumpNavigatorView(sourcesNavigator); |
| 48 next(); | 48 next(); |
| 49 } | 49 } |
| 50 }, | 50 }, |
| 51 | 51 |
| 52 function removeFileMapping(next) | 52 function removeFileMapping(next) |
| 53 { | 53 { |
| 54 Persistence.persistence.addEventListener(Persistence.Persistence.Eve
nts.BindingRemoved, onBindingRemoved); | 54 Persistence.persistence.addEventListener(Persistence.Persistence.Bin
dingChangedEvent, onBindingChanged); |
| 55 Workspace.fileSystemMapping.removeFileMapping(fs.fileSystemPath, "ht
tp://127.0.0.1:8000", "/"); | 55 Workspace.fileSystemMapping.removeFileMapping(fs.fileSystemPath, "ht
tp://127.0.0.1:8000", "/"); |
| 56 | 56 |
| 57 function onBindingRemoved(event) | 57 function onBindingChanged(event) |
| 58 { | 58 { |
| 59 var binding = event.data; | 59 if (!event.removed) |
| 60 if (binding.network.name() !== "foo.js") | 60 return; |
| 61 if (event.binding.network.name() !== "foo.js") |
| 61 return | 62 return |
| 62 Persistence.persistence.removeEventListener(Persistence.Persiste
nce.Events.BindingRemoved, onBindingRemoved); | 63 Persistence.persistence.removeEventListener(Persistence.Persiste
nce.BindingChangedEvent, onBindingChanged); |
| 63 InspectorTest.dumpNavigatorView(sourcesNavigator); | 64 InspectorTest.dumpNavigatorView(sourcesNavigator); |
| 64 next(); | 65 next(); |
| 65 } | 66 } |
| 66 }, | 67 }, |
| 67 ]); | 68 ]); |
| 68 }; | 69 }; |
| 69 </script> | 70 </script> |
| 70 </head> | 71 </head> |
| 71 <body onload="runTest()"> | 72 <body onload="runTest()"> |
| 72 <p>Verify that navigator view removes mapped UISourceCodes.</p> | 73 <p>Verify that navigator view removes mapped UISourceCodes.</p> |
| 73 </body> | 74 </body> |
| 74 </html> | 75 </html> |
| OLD | NEW |