| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Include test fixture. | 5 // Include test fixture. |
| 6 GEN_INCLUDE(['net_internals_test.js']); | 6 GEN_INCLUDE(['net_internals_test.js']); |
| 7 | 7 |
| 8 // Anonymous namespace | 8 // Anonymous namespace |
| 9 (function() { | 9 (function() { |
| 10 | 10 |
| 11 /** | 11 /** |
| 12 * Checks visibility of tab handles against expectations, and navigates to all | 12 * Checks visibility of tab handles against expectations, and navigates to all |
| 13 * tabs with visible handles, validating visibility of all other tabs as it | 13 * tabs with visible handles, validating visibility of all other tabs as it |
| 14 * goes. | 14 * goes. |
| 15 */ | 15 */ |
| 16 TEST_F('NetInternalsTest', 'netInternalsTourTabs', function() { | 16 TEST_F('NetInternalsTest', 'netInternalsTourTabs', function() { |
| 17 // Prevent sending any events to the browser as we flip through tabs, since | 17 // Prevent sending any events to the browser as we flip through tabs, since |
| 18 // this test is just intended to make sure everything's created and hooked | 18 // this test is just intended to make sure everything's created and hooked |
| 19 // up properly Javascript side. | 19 // up properly Javascript side. |
| 20 g_browser.disable(); | 20 g_browser.disable(); |
| 21 | 21 |
| 22 // Expected visibility state of each tab. | 22 // Expected visibility state of each tab. |
| 23 var tabVisibilityState = { | 23 var tabVisibilityState = { |
| 24 capture: true, | 24 capture: true, |
| 25 export: true, | |
| 26 import: true, | 25 import: true, |
| 27 proxy: true, | 26 proxy: true, |
| 28 events: true, | 27 events: true, |
| 29 timeline: true, | 28 timeline: true, |
| 30 dns: true, | 29 dns: true, |
| 31 sockets: true, | 30 sockets: true, |
| 32 http2: true, | 31 http2: true, |
| 33 quic: true, | 32 quic: true, |
| 34 'alt-svc': true, | 33 'alt-svc': true, |
| 35 sdch: true, | 34 sdch: true, |
| 36 httpCache: true, | 35 httpCache: true, |
| 37 modules: true, | 36 modules: true, |
| 38 hsts: true, | 37 hsts: true, |
| 39 prerender: true, | 38 prerender: true, |
| 40 bandwidth: true, | 39 bandwidth: true, |
| 41 chromeos: cr.isChromeOS | 40 chromeos: cr.isChromeOS |
| 42 }; | 41 }; |
| 43 | 42 |
| 44 NetInternalsTest.checkTabLinkVisibility(tabVisibilityState, true); | 43 NetInternalsTest.checkTabLinkVisibility(tabVisibilityState, true); |
| 45 | 44 |
| 46 testDone(); | 45 testDone(); |
| 47 }); | 46 }); |
| 48 | 47 |
| 49 })(); // Anonymous namespace | 48 })(); // Anonymous namespace |
| OLD | NEW |