- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / webui / net_internals / main.js
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.
4
5 // Include test fixture.
6 GEN_INCLUDE(['net_internals_test.js']);
7
8 // Anonymous namespace
9 (function() {
10
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.
15  */
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();
21
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     spdy: true,
34     quic: true,
35     httpPipeline: true,
36     httpCache: true,
37     modules: true,
38     tests: true,
39     hsts: true,
40     logs: cr.isChromeOS,
41     prerender: true,
42     bandwidth: true,
43     chromeos: cr.isChromeOS,
44     visualizer: cr.isChromeOS
45   };
46
47   NetInternalsTest.checkTabHandleVisibility(tabVisibilityState, true);
48
49   testDone();
50 });
51
52 })();  // Anonymous namespace