| OLD | NEW |
| (Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
| 4 <script src="../../http/tests/inspector/network-test.js"></script> |
| 5 <script> |
| 6 |
| 7 function test() { |
| 8 InspectorTest.recordNetwork(); |
| 9 var networkPanel = UI.panels.network; |
| 10 var showOverviewSetting = Common.settings.createSetting('networkLogShowOverv
iew', true); |
| 11 var showFilmstripSetting = Common.settings.createSetting('networkRecordFilmS
tripSetting', false); |
| 12 |
| 13 InspectorTest.addResult("Overview should not be showing"); |
| 14 InspectorTest.addResult("Filmstrip should not be showing"); |
| 15 showOverviewSetting.set(false); |
| 16 showFilmstripSetting.set(false); |
| 17 |
| 18 InspectorTest.addResult("Overview Showing: " + isOverviewShowing()); |
| 19 InspectorTest.addResult("Filmstrip Showing: " + isFilmstripShowing()); |
| 20 InspectorTest.addResult(""); |
| 21 |
| 22 InspectorTest.addResult("Overview should be showing"); |
| 23 InspectorTest.addResult("Filmstrip should not be showing"); |
| 24 showOverviewSetting.set(true); |
| 25 showFilmstripSetting.set(false); |
| 26 |
| 27 InspectorTest.addResult("Overview Showing: " + isOverviewShowing()); |
| 28 InspectorTest.addResult("Filmstrip Showing: " + isFilmstripShowing()); |
| 29 InspectorTest.addResult(""); |
| 30 |
| 31 InspectorTest.addResult("Overview should not be showing"); |
| 32 InspectorTest.addResult("Filmstrip should be showing"); |
| 33 showOverviewSetting.set(false); |
| 34 showFilmstripSetting.set(true); |
| 35 |
| 36 InspectorTest.addResult("Overview Showing: " + isOverviewShowing()); |
| 37 InspectorTest.addResult("Filmstrip Showing: " + isFilmstripShowing()); |
| 38 InspectorTest.addResult(""); |
| 39 |
| 40 InspectorTest.addResult("Overview should be showing"); |
| 41 InspectorTest.addResult("Filmstrip should be showing"); |
| 42 showOverviewSetting.set(true); |
| 43 showFilmstripSetting.set(true); |
| 44 |
| 45 InspectorTest.addResult("Overview Showing: " + isOverviewShowing()); |
| 46 InspectorTest.addResult("Filmstrip Showing: " + isFilmstripShowing()); |
| 47 InspectorTest.addResult(""); |
| 48 |
| 49 InspectorTest.completeTest(); |
| 50 |
| 51 function isOverviewShowing() { |
| 52 if (!networkPanel._overviewPane) |
| 53 return false; |
| 54 return networkPanel._overviewPane.isShowing(); |
| 55 } |
| 56 |
| 57 function isFilmstripShowing() { |
| 58 if (!networkPanel._filmStripView) |
| 59 return false; |
| 60 return networkPanel._filmStripView.isShowing(); |
| 61 } |
| 62 } |
| 63 |
| 64 </script> |
| 65 </head> |
| 66 <body onload="runTest()"> |
| 67 <p>Tests to make sure film strip and overview pane show if the other does not ex
ist. http://crbug.com/723659</p> |
| 68 </body> |
| 69 </html> |
| OLD | NEW |