| 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="../sources/debugger/resources/edit-me.js"></script> | 5 <script src="../sources/debugger/resources/edit-me.js"></script> |
| 6 <script src="resources/search-me.js"></script> | 6 <script src="resources/search-me.js"></script> |
| 7 <script> | 7 <script> |
| 8 | 8 |
| 9 function test() | 9 function test() |
| 10 { | 10 { |
| 11 var textEditor; | 11 var textEditor; |
| 12 var searchString = "FINDME"; | 12 var searchString = "FINDME"; |
| 13 var searchableView = WebInspector.panels.sources.searchableView(); | 13 var searchableView = UI.panels.sources.searchableView(); |
| 14 var sourceFrame; | 14 var sourceFrame; |
| 15 InspectorTest.showScriptSource("search-me.js", didShowScriptSource); | 15 InspectorTest.showScriptSource("search-me.js", didShowScriptSource); |
| 16 | 16 |
| 17 function didShowScriptSource(shownSourceFrame) | 17 function didShowScriptSource(shownSourceFrame) |
| 18 { | 18 { |
| 19 sourceFrame = shownSourceFrame; | 19 sourceFrame = shownSourceFrame; |
| 20 textEditor = sourceFrame._textEditor; | 20 textEditor = sourceFrame._textEditor; |
| 21 // We are probably still updating the editor in current callstack, so po
stponing the test execution. | 21 // We are probably still updating the editor in current callstack, so po
stponing the test execution. |
| 22 setImmediate(textEditorUpdated); | 22 setImmediate(textEditorUpdated); |
| 23 } | 23 } |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 InspectorTest.completeTest(); | 57 InspectorTest.completeTest(); |
| 58 } | 58 } |
| 59 } | 59 } |
| 60 }; | 60 }; |
| 61 </script> | 61 </script> |
| 62 </head> | 62 </head> |
| 63 <body onload="runTest()"> | 63 <body onload="runTest()"> |
| 64 <p>Tests that switching editor tabs after searching does not affect editor selec
tion and viewport.</p> | 64 <p>Tests that switching editor tabs after searching does not affect editor selec
tion and viewport.</p> |
| 65 </body> | 65 </body> |
| 66 </html> | 66 </html> |
| OLD | NEW |