- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / api_test / app_process / test.html
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.
5
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";
10
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 });
19
20 function testWindowOpen() {
21   window.open(url1);
22   window.open(url2);
23   window.open(url3);
24 }
25 </script>