OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 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 var firstTabId; |
| 6 var firstTab; |
| 7 |
| 8 chrome.test.runTests([ |
| 9 function setupWindow() { |
| 10 createWindow([pageUrl("a")], {}, pass(function(winId, tabIds) { |
| 11 firstTabId = tabIds[0]; |
| 12 chrome.tabs.get(firstTabId, pass(function(tab) { |
| 13 assertTrue(tab.width > 0); |
| 14 assertTrue(tab.height > 0); |
| 15 firstTab = tab; |
| 16 })); |
| 17 })); |
| 18 }, |
| 19 |
| 20 function sizeAfterDuplicatingTab() { |
| 21 chrome.tabs.duplicate(firstTabId, pass(function(tab) { |
| 22 assertEq(firstTab.width, tab.width); |
| 23 assertEq(firstTab.height, tab.height); |
| 24 })); |
| 25 } |
| 26 ]); |
OLD | NEW |