[MacViews] Show comboboxes with a native NSMenu
[chromium-blink-merge.git] / chrome / test / data / webui / net_internals / main.js
blob974f6f7db0bc5209bb67919b0708b764f0aa8200
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
3 // found in the LICENSE file.
5 // Include test fixture.
6 GEN_INCLUDE(['net_internals_test.js']);
8 // Anonymous namespace
9 (function() {
11 /**
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
14 * goes.
16 TEST_F('NetInternalsTest', 'netInternalsTourTabs', function() {
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
19 // up properly Javascript side.
20 g_browser.disable();
22 // Expected visibility state of each tab.
23 var tabVisibilityState = {
24 capture: true,
25 export: true,
26 import: true,
27 proxy: true,
28 events: true,
29 waterfall: true,
30 timeline: true,
31 dns: true,
32 sockets: true,
33 http2: true,
34 quic: true,
35 sdch: true,
36 httpCache: true,
37 modules: true,
38 hsts: true,
39 prerender: true,
40 bandwidth: true,
41 chromeos: cr.isChromeOS
44 NetInternalsTest.checkTabHandleVisibility(tabVisibilityState, true);
46 testDone();
47 });
49 })(); // Anonymous namespace