Do not announce robot account token before account ID is available
[chromium-blink-merge.git] / chrome / test / data / extensions / api_test / app_process / test.html
blob154e6d1135cdb6e9fc80c616abda16c7696bdc82
1 <script>
2 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file.
6 var origin = "http://localhost:1337/extensions/api_test/app_process/";
7 var url1 = origin + "path1/empty.html";
8 var url2 = origin + "path2/empty.html";
9 var url3 = origin + "path3/empty.html";
11 // Create 3 tabs. The first 2 should be grouped into the same app process.
12 chrome.tabs.create({url: url1}, function() {
13 chrome.tabs.create({url: url2}, function() {
14 chrome.tabs.create({url: url3}, function() {
15 chrome.test.notifyPass();
16 });
17 });
18 });
20 function testWindowOpen() {
21 window.open(url1);
22 window.open(url2);
23 window.open(url3);
25 </script>