| OLD | NEW | 
|---|
| (Empty) |  | 
|  | 1 <html> | 
|  | 2 <head> | 
|  | 3 <script src="../inspector-test.js"></script> | 
|  | 4 <script src="../debugger-test.js"></script> | 
|  | 5 <script src="../isolated-filesystem-test.js"></script> | 
|  | 6 <script src="./persistence-test.js"></script> | 
|  | 7 <script src="./resources/foo.js"></script> | 
|  | 8 <script> | 
|  | 9 | 
|  | 10 function test() | 
|  | 11 { | 
|  | 12     var fs = new InspectorTest.TestFileSystem("file:///var/www"); | 
|  | 13     fs.addFileMapping("http://127.0.0.1:8000", "/"); | 
|  | 14     var amendedContent = ";" + InspectorTest.fooJSContent.substring(1); | 
|  | 15     var fsEntry = fs.addFile("inspector/persistence/resources/foo.js", amendedCo
    ntent); | 
|  | 16     fs.reportCreated(function() { }); | 
|  | 17 | 
|  | 18     InspectorTest.runTestSuite([ | 
|  | 19         function waitForBinding(next) | 
|  | 20         { | 
|  | 21             InspectorTest.waitForBinding("foo.js").then(onBindingCreated); | 
|  | 22 | 
|  | 23             function onBindingCreated(binding) | 
|  | 24             { | 
|  | 25                 InspectorTest.addResult("binding added: " + binding); | 
|  | 26                 next(); | 
|  | 27             } | 
|  | 28         }, | 
|  | 29 | 
|  | 30         function openFileSystemTab(next) | 
|  | 31         { | 
|  | 32             Persistence.persistence.addEventListener(Persistence.Persistence.Eve
    nts.BindingRemoved, onBindingRemoved); | 
|  | 33             InspectorTest.waitForUISourceCode("foo.js", Workspace.projectTypes.F
    ileSystem) | 
|  | 34                 .then(code => InspectorTest.showUISourceCodePromise(code)); | 
|  | 35 | 
|  | 36             function onBindingRemoved(event) | 
|  | 37             { | 
|  | 38                 var binding = event.data; | 
|  | 39                 if (binding.network.name() !== "foo.js") | 
|  | 40                     return | 
|  | 41                 Persistence.persistence.removeEventListener(Persistence.Persiste
    nce.Events.BindingRemoved, onBindingRemoved); | 
|  | 42                 InspectorTest.addResult("binding removed: " + binding); | 
|  | 43                 next(); | 
|  | 44             } | 
|  | 45         }, | 
|  | 46     ]); | 
|  | 47 }; | 
|  | 48 </script> | 
|  | 49 </head> | 
|  | 50 <body onload="runTest()"> | 
|  | 51 <p>Verify that bindings are validated whenever the editor tab gets opened.</p> | 
|  | 52 </body> | 
|  | 53 </html> | 
| OLD | NEW | 
|---|