| 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/workspace-test.js"></script> | 4 <script src="../http/tests/inspector/workspace-test.js"></script> |
| 5 <script src="../http/tests/inspector/debugger-test.js"></script> | 5 <script src="../http/tests/inspector/debugger-test.js"></script> |
| 6 <script src="resources/example-fileset-for-test.js"></script> | 6 <script src="resources/example-fileset-for-test.js"></script> |
| 7 <script src="editor/editor-test.js"></script> | 7 <script src="editor/editor-test.js"></script> |
| 8 <script> | 8 <script> |
| 9 function test() | 9 function test() |
| 10 { | 10 { |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 dumpSelection(panel.visibleView.textEditor, "Initial state"); | 237 dumpSelection(panel.visibleView.textEditor, "Initial state"); |
| 238 | 238 |
| 239 InspectorTest.waitForScriptSource("example-fileset-for-test.js", onS
criptSourceLoaded); | 239 InspectorTest.waitForScriptSource("example-fileset-for-test.js", onS
criptSourceLoaded); |
| 240 function onScriptSourceLoaded(uiSourceCode) | 240 function onScriptSourceLoaded(uiSourceCode) |
| 241 { | 241 { |
| 242 var jumps = [20, 10, 30]; | 242 var jumps = [20, 10, 30]; |
| 243 for (var i = 0; i < jumps.length; ++i) { | 243 for (var i = 0; i < jumps.length; ++i) { |
| 244 panel.showUISourceCode(uiSourceCode, jumps[i]); | 244 panel.showUISourceCode(uiSourceCode, jumps[i]); |
| 245 dumpSelection(panel.visibleView.textEditor, "jump to line "
+ jumps[i]); | 245 dumpSelection(panel.visibleView.textEditor, "jump to line "
+ jumps[i]); |
| 246 } | 246 } |
| 247 panel.highlightPosition(40, 10); | 247 panel.showUISourceCode(uiSourceCode, 40, 10); |
| 248 dumpSelection(panel.visibleView.textEditor, "highlight line 40")
; | 248 dumpSelection(panel.visibleView.textEditor, "highlight line 40")
; |
| 249 for (var i = 0; i < jumps.length + 1; ++i) { | 249 for (var i = 0; i < jumps.length + 1; ++i) { |
| 250 rollback(); | 250 rollback(); |
| 251 dumpSelection(panel.visibleView.textEditor, "rollback"); | 251 dumpSelection(panel.visibleView.textEditor, "rollback"); |
| 252 } | 252 } |
| 253 next(); | 253 next(); |
| 254 } | 254 } |
| 255 } | 255 } |
| 256 ]); | 256 ]); |
| 257 }; | 257 }; |
| 258 </script> | 258 </script> |
| 259 </head> | 259 </head> |
| 260 <body onload="runTest()"> | 260 <body onload="runTest()"> |
| 261 <p>Tests that jumping to previous location works as intended.</p> | 261 <p>Tests that jumping to previous location works as intended.</p> |
| 262 </body> | 262 </body> |
| 263 </html> | 263 </html> |
| OLD | NEW |