| 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> | 5 <script> |
| 6 function test() | 6 function test() |
| 7 { | 7 { |
| 8 InspectorTest.showScriptSource("inspector-test.js", onSourceFrame); | 8 InspectorTest.showScriptSource("inspector-test.js", onSourceFrame); |
| 9 function onSourceFrame(sourceFrame) | 9 function onSourceFrame(sourceFrame) |
| 10 { | 10 { |
| 11 InspectorTest.addResult("initial: focused = " + sourceFrame.hasFocus()); | 11 InspectorTest.addResult("initial: focused = " + sourceFrame.hasFocus()); |
| 12 WebInspector.inspectorView.showPanel("elements") | 12 UI.inspectorView.showPanel("elements") |
| 13 .then(() => WebInspector.inspectorView.showPanel("sources")) | 13 .then(() => UI.inspectorView.showPanel("sources")) |
| 14 .then(onPanelReselected.bind(null, sourceFrame)); | 14 .then(onPanelReselected.bind(null, sourceFrame)); |
| 15 } | 15 } |
| 16 | 16 |
| 17 function onPanelReselected(sourceFrame) | 17 function onPanelReselected(sourceFrame) |
| 18 { | 18 { |
| 19 InspectorTest.addResult("after panel reselected: focused = " + sourceFra
me.hasFocus()); | 19 InspectorTest.addResult("after panel reselected: focused = " + sourceFra
me.hasFocus()); |
| 20 InspectorTest.completeTest(); | 20 InspectorTest.completeTest(); |
| 21 } | 21 } |
| 22 }; | 22 }; |
| 23 </script> | 23 </script> |
| 24 </head> | 24 </head> |
| 25 <body onload="runTest()"> | 25 <body onload="runTest()"> |
| 26 <p>Verifies that text editor has focus after panel re-selecting.</p> | 26 <p>Verifies that text editor has focus after panel re-selecting.</p> |
| 27 </body> | 27 </body> |
| 28 </html> | 28 </html> |
| OLD | NEW |