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 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 | 216 |
217 function testShowAnchorLocation(next) | 217 function testShowAnchorLocation(next) |
218 { | 218 { |
219 dumpSelection(panel.visibleView.textEditor, "Before switching to oth
er panel"); | 219 dumpSelection(panel.visibleView.textEditor, "Before switching to oth
er panel"); |
220 InspectorTest.waitForScriptSource("workspace-test.js", onScriptSourc
e); | 220 InspectorTest.waitForScriptSource("workspace-test.js", onScriptSourc
e); |
221 function onScriptSource(uiSourceCode) | 221 function onScriptSource(uiSourceCode) |
222 { | 222 { |
223 var linkifier = new WebInspector.Linkifier(); | 223 var linkifier = new WebInspector.Linkifier(); |
224 WebInspector.inspectorView.showPanel("timeline"); | 224 WebInspector.inspectorView.showPanel("timeline"); |
225 var anchorURI = uiSourceCode.url; | 225 var anchorURI = uiSourceCode.url; |
226 var anchor = linkifier.linkifyLocation(WebInspector.targetManage
r.activeTarget(), anchorURI, 10, 1); | 226 var anchor = linkifier.linkifyLocation(WebInspector.targetManage
r.mainTarget(), anchorURI, 10, 1); |
227 WebInspector.Revealer.reveal(anchor.__uiLocation); | 227 WebInspector.Revealer.reveal(anchor.__uiLocation); |
228 InspectorTest.addResult("Selection: " + panel.visibleView.textEd
itor.selection().toString()); | 228 InspectorTest.addResult("Selection: " + panel.visibleView.textEd
itor.selection().toString()); |
229 dumpSelection(panel.visibleView.textEditor, "Showed anchor in "
+ anchorURI.split("/").pop() + " with line 333 column 3"); | 229 dumpSelection(panel.visibleView.textEditor, "Showed anchor in "
+ anchorURI.split("/").pop() + " with line 333 column 3"); |
230 rollback(); | 230 rollback(); |
231 dumpSelection(panel.visibleView.textEditor, "Rolled back"); | 231 dumpSelection(panel.visibleView.textEditor, "Rolled back"); |
232 rollover(); | 232 rollover(); |
233 dumpSelection(panel.visibleView.textEditor, "Rolled over"); | 233 dumpSelection(panel.visibleView.textEditor, "Rolled over"); |
234 next(); | 234 next(); |
235 } | 235 } |
236 }, | 236 }, |
(...skipping 20 matching lines...) Expand all Loading... |
257 } | 257 } |
258 } | 258 } |
259 ]); | 259 ]); |
260 }; | 260 }; |
261 </script> | 261 </script> |
262 </head> | 262 </head> |
263 <body onload="runTest()"> | 263 <body onload="runTest()"> |
264 <p>Tests that jumping to previous location works as intended.</p> | 264 <p>Tests that jumping to previous location works as intended.</p> |
265 </body> | 265 </body> |
266 </html> | 266 </html> |
OLD | NEW |