| 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="persistence/persistence-test.js"></script> | 5 <script src="persistence/persistence-test.js"></script> |
| 6 <script src="isolated-filesystem-test.js"></script> | 6 <script src="isolated-filesystem-test.js"></script> |
| 7 <script> | 7 <script> |
| 8 function addScript(url) | 8 function addScript(url) |
| 9 { | 9 { |
| 10 var script = document.createElement("script"); | 10 var script = document.createElement("script"); |
| 11 script.setAttribute("src", url); | 11 script.setAttribute("src", url); |
| 12 document.head.appendChild(script); | 12 document.head.appendChild(script); |
| 13 } | 13 } |
| 14 | 14 |
| 15 function test() | 15 function test() |
| 16 { | 16 { |
| 17 InspectorTest.forceUseDefaultMapping(); |
| 17 var target = InspectorTest.mainTarget; | 18 var target = InspectorTest.mainTarget; |
| 18 var fileSystemProjectId = Persistence.FileSystemWorkspaceBinding.projectId("
file:///var/www"); | 19 var fileSystemProjectId = Persistence.FileSystemWorkspaceBinding.projectId("
file:///var/www"); |
| 19 | 20 |
| 20 function dumpFileSystemUISourceCodesMappings() | 21 function dumpFileSystemUISourceCodesMappings() |
| 21 { | 22 { |
| 22 var uiSourceCodes = Workspace.workspace.project(fileSystemProjectId).uiS
ourceCodes(); | 23 var uiSourceCodes = Workspace.workspace.project(fileSystemProjectId).uiS
ourceCodes(); |
| 23 InspectorTest.addResult("UISourceCode uri to url mappings:"); | 24 InspectorTest.addResult("UISourceCode uri to url mappings:"); |
| 24 for (var uiSourceCode of uiSourceCodes) { | 25 for (var uiSourceCode of uiSourceCodes) { |
| 25 var binding = Persistence.persistence.binding(uiSourceCode); | 26 var binding = Persistence.persistence.binding(uiSourceCode); |
| 26 var url = binding ? binding.network.url() : ""; | 27 var url = binding ? binding.network.url() : ""; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 56 } | 57 } |
| 57 } | 58 } |
| 58 ]); | 59 ]); |
| 59 }; | 60 }; |
| 60 </script> | 61 </script> |
| 61 </head> | 62 </head> |
| 62 <body onload="runTest()"> | 63 <body onload="runTest()"> |
| 63 <p>Tests file system project mappings.</p> | 64 <p>Tests file system project mappings.</p> |
| 64 </body> | 65 </body> |
| 65 </html> | 66 </html> |
| OLD | NEW |