| OLD | NEW |
| 1 <script> | 1 <script> |
| 2 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 3 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 5 | 5 |
| 6 var origin = "http://localhost:1337/files/extensions/api_test/app_process/"; | 6 var origin = "http://localhost:1337/extensions/api_test/app_process/"; |
| 7 var url1 = origin + "path1/empty.html"; | 7 var url1 = origin + "path1/empty.html"; |
| 8 var url2 = origin + "path2/empty.html"; | 8 var url2 = origin + "path2/empty.html"; |
| 9 var url3 = origin + "path3/empty.html"; | 9 var url3 = origin + "path3/empty.html"; |
| 10 | 10 |
| 11 // Create 3 tabs. The first 2 should be grouped into the same app process. | 11 // Create 3 tabs. The first 2 should be grouped into the same app process. |
| 12 chrome.tabs.create({url: url1}, function() { | 12 chrome.tabs.create({url: url1}, function() { |
| 13 chrome.tabs.create({url: url2}, function() { | 13 chrome.tabs.create({url: url2}, function() { |
| 14 chrome.tabs.create({url: url3}, function() { | 14 chrome.tabs.create({url: url3}, function() { |
| 15 chrome.test.notifyPass(); | 15 chrome.test.notifyPass(); |
| 16 }); | 16 }); |
| 17 }); | 17 }); |
| 18 }); | 18 }); |
| 19 | 19 |
| 20 function testWindowOpen() { | 20 function testWindowOpen() { |
| 21 window.open(url1); | 21 window.open(url1); |
| 22 window.open(url2); | 22 window.open(url2); |
| 23 window.open(url3); | 23 window.open(url3); |
| 24 } | 24 } |
| 25 </script> | 25 </script> |
| OLD | NEW |