| 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 type="text/javascript"> | 4 <script type="text/javascript"> |
| 5 var test = function() | 5 var test = function() |
| 6 { | 6 { |
| 7 function logPersistenceSetting() | 7 function logPersistenceSetting() |
| 8 { | 8 { |
| 9 InspectorTest.addResult("Closeable tabs to restore: " + JSON.stringify(t
abbedPaneController._closeableTabSetting.get())); | 9 InspectorTest.addResult("Closeable tabs to restore: " + JSON.stringify(t
abbedPaneController._closeableTabSetting.get())); |
| 10 } | 10 } |
| 11 | 11 |
| 12 var tabbedPaneController = WebInspector.inspectorView._drawerTabbedPane; | 12 var tabbedPaneController = WebInspector.inspectorView._drawerTabbedLocation; |
| 13 logPersistenceSetting(); | 13 logPersistenceSetting(); |
| 14 // Show a closeable tab. | 14 // Show a closeable tab. |
| 15 tabbedPaneController.showView("sensors"); | 15 tabbedPaneController.showView("sensors"); |
| 16 logPersistenceSetting(); | 16 logPersistenceSetting(); |
| 17 tabbedPaneController.showView("sensors"); | 17 tabbedPaneController.showView("sensors"); |
| 18 logPersistenceSetting(); | 18 logPersistenceSetting(); |
| 19 // Show a permanent tab. | 19 // Show a permanent tab. |
| 20 tabbedPaneController.showView("console"); | 20 tabbedPaneController.showView("console"); |
| 21 logPersistenceSetting(); | 21 logPersistenceSetting(); |
| 22 // Show temporary tab. | 22 // Show temporary tab. |
| 23 tabbedPaneController.showView("sources.history"); | 23 tabbedPaneController.showView("sources.history"); |
| 24 logPersistenceSetting(); | 24 logPersistenceSetting(); |
| 25 // Close closeable tab. | 25 // Close closeable tab. |
| 26 tabbedPaneController._tabbedPane.closeTab("sensors"); | 26 tabbedPaneController.tabbedPane().closeTab("sensors"); |
| 27 logPersistenceSetting(); | 27 logPersistenceSetting(); |
| 28 | 28 |
| 29 InspectorTest.completeTest(); | 29 InspectorTest.completeTest(); |
| 30 } | 30 } |
| 31 </script> | 31 </script> |
| 32 </head> | 32 </head> |
| 33 <body onload="runTest()"> | 33 <body onload="runTest()"> |
| 34 <p>Tests extensible tabbed pane closeable tabs persistence logic.</p> | 34 <p>Tests extensible tabbed pane closeable tabs persistence logic.</p> |
| 35 </body> | 35 </body> |
| 36 </html> | 36 </html> |
| OLD | NEW |