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 InspectorTest.addFooJSFile(fs); |
| 15 fs.reportCreated(function() { }); |
| 16 |
| 17 InspectorTest.runTestSuite([ |
| 18 function waitForUISourceCodes(next) |
| 19 { |
| 20 Promise.all([ |
| 21 InspectorTest.waitForUISourceCode("foo.js", WebInspector.project
Types.Network), |
| 22 InspectorTest.waitForUISourceCode("foo.js", WebInspector.project
Types.FileSystem) |
| 23 ]).then(next); |
| 24 }, |
| 25 |
| 26 function goToSourceDialogBeforeBinding(next) |
| 27 { |
| 28 dumpGoToSourceDialog(); |
| 29 next(); |
| 30 }, |
| 31 |
| 32 function addFileSystemMapping(next) |
| 33 { |
| 34 WebInspector.fileSystemMapping.addFileMapping(fs.fileSystemPath, "ht
tp://127.0.0.1:8000", "/"); |
| 35 InspectorTest.waitForBinding("foo.js").then(next); |
| 36 }, |
| 37 |
| 38 function goToSourceAfterBinding(next) |
| 39 { |
| 40 dumpGoToSourceDialog(); |
| 41 next(); |
| 42 }, |
| 43 ]); |
| 44 |
| 45 function dumpGoToSourceDialog() |
| 46 { |
| 47 WebInspector.panels.sources._sourcesView.showOpenResourceDialog(); |
| 48 var dialog = WebInspector.OpenResourceDialog._instanceForTest; |
| 49 for (var i = 0; i < dialog.itemCount(); ++i) |
| 50 InspectorTest.addResult(dialog.itemKeyAt(i)); |
| 51 WebInspector.Dialog._instance.detach(); |
| 52 } |
| 53 }; |
| 54 </script> |
| 55 </head> |
| 56 <body onload="runTest()"> |
| 57 <p>Verify that GoTo source dialog filters out mapped uiSourceCodes.</p> |
| 58 </body> |
| 59 </html> |
OLD | NEW |