| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../../http/tests/inspector/debugger-test.js"></script> | 4 <script src="../../../http/tests/inspector/debugger-test.js"></script> |
| 5 <script src="../../../http/tests/inspector/workspace-test.js"></script> | 5 <script src="../../../http/tests/inspector/workspace-test.js"></script> |
| 6 <script> | 6 <script> |
| 7 function test() | 7 function test() |
| 8 { | 8 { |
| 9 var uiSourceCodes = []; | 9 var uiSourceCodes = []; |
| 10 function addUISourceCode(url) | 10 function addUISourceCode(url) |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 "bar/foo.ts", | 40 "bar/foo.ts", |
| 41 "bar/foo" ]; | 41 "bar/foo" ]; |
| 42 | 42 |
| 43 for (var i = 0; i < files.length; ++i) | 43 for (var i = 0; i < files.length; ++i) |
| 44 addUISourceCode("http://example.com/" + files[i]); | 44 addUISourceCode("http://example.com/" + files[i]); |
| 45 | 45 |
| 46 InspectorTest.addResult("Dumping next file for each file:"); | 46 InspectorTest.addResult("Dumping next file for each file:"); |
| 47 for (var i = 0; i < uiSourceCodes.length; ++i) { | 47 for (var i = 0; i < uiSourceCodes.length; ++i) { |
| 48 var uiSourceCode = uiSourceCodes[i]; | 48 var uiSourceCode = uiSourceCodes[i]; |
| 49 var nextUISourceCode = WebInspector.SourcesView.SwitchFileActionDelegate
._nextFile(uiSourceCode); | 49 var nextUISourceCode = WebInspector.SourcesView.SwitchFileActionDelegate
._nextFile(uiSourceCode); |
| 50 var nextURI = nextUISourceCode ? nextUISourceCode.uri() : "<none>"; | 50 var nextURI = nextUISourceCode ? nextUISourceCode.url() : "<none>"; |
| 51 InspectorTest.addResult("Next file for " + uiSourceCode.uri() + " is " +
nextURI + "."); | 51 InspectorTest.addResult("Next file for " + uiSourceCode.url() + " is " +
nextURI + "."); |
| 52 } | 52 } |
| 53 InspectorTest.completeTest(); | 53 InspectorTest.completeTest(); |
| 54 } | 54 } |
| 55 </script> | 55 </script> |
| 56 </head> | 56 </head> |
| 57 <body onload="runTest()"> | 57 <body onload="runTest()"> |
| 58 <p>Tests how switch to next file with the same name and different extension feat
ure works.</p> | 58 <p>Tests how switch to next file with the same name and different extension feat
ure works.</p> |
| 59 </body> | 59 </body> |
| 60 </html> | 60 </html> |
| OLD | NEW |