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="../console-test.js"></script> |
| 7 <script src="../isolated-filesystem-test.js"></script> |
| 8 <script src="./persistence-test.js"></script> |
| 9 <script src="./resources/foo.js"></script> |
| 10 <script> |
| 11 |
| 12 function test() |
| 13 { |
| 14 var fs = new InspectorTest.TestFileSystem("file:///var/www"); |
| 15 InspectorTest.addFooJSFile(fs); |
| 16 fs.reportCreated(function() { }); |
| 17 |
| 18 InspectorTest.runTestSuite([ |
| 19 function waitForUISourceCodes(next) |
| 20 { |
| 21 Promise.all([ |
| 22 InspectorTest.waitForUISourceCode("foo.js", WebInspector.project
Types.Network) |
| 23 .then(uiSourceCode => uiSourceCode.setWorkingCopy("dirty."))
, |
| 24 InspectorTest.waitForUISourceCode("foo.js", WebInspector.project
Types.FileSystem) |
| 25 ]).then(next); |
| 26 }, |
| 27 |
| 28 function addFileSystemMapping(next) |
| 29 { |
| 30 WebInspector.fileSystemMapping.addFileMapping(fs.fileSystemPath, "ht
tp://127.0.0.1:8000", "/"); |
| 31 next(); |
| 32 }, |
| 33 |
| 34 function dumpConsoleMessages(next) |
| 35 { |
| 36 InspectorTest.dumpConsoleMessages(); |
| 37 next(); |
| 38 }, |
| 39 ]); |
| 40 }; |
| 41 </script> |
| 42 </head> |
| 43 <body onload="runTest()"> |
| 44 <p>Verify that dirty uiSourceCodes are not bound.</p> |
| 45 </body> |
| 46 </html> |
OLD | NEW |