Do not announce robot account token before account ID is available
[chromium-blink-merge.git] / chrome / test / data / extensions / api_test / tabs / basics / get_views_window.js
blobd249814dc7713857c0831d6fc06eb3d9936569cf
1 // Copyright (c) 2011 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 chrome.test.runTests([
6 function canGetViewsOfEmptyWindow() {
7 testGetNewWindowView({type: "normal"}, []);
8 },
10 function canGetViewsOfWindowWithUrl() {
11 var URLS = ["a.html"];
12 testGetNewWindowView({type: "normal", url: URLS}, URLS);
15 function canGetViewsOfWindowWithManyUrls() {
16 var URLS = ["a.html", "b.html", "c.html"];
17 testGetNewWindowView({type: "normal", url: URLS}, URLS);
20 function canGetViewsOfDetatchedTab() {
21 // Start with a window holding two tabs.
22 chrome.windows.create({"url": ["a.html", "b.html"]}, function(win) {
23 // Detatch the first tab. See that the tab is findable with the new
24 // window ID.
25 testGetNewWindowView(
26 {type: "normal", tabId: win.tabs[0].id}, ["a.html"]);
27 });
29 ]);