Index: chrome/test/data/extensions/api_test/tabs/basics/tab_size.js |
diff --git a/chrome/test/data/extensions/api_test/tabs/basics/tab_size.js b/chrome/test/data/extensions/api_test/tabs/basics/tab_size.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..de970bb68331dca0c52447a5bf1c1aad2552ab38 |
--- /dev/null |
+++ b/chrome/test/data/extensions/api_test/tabs/basics/tab_size.js |
@@ -0,0 +1,26 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+var firstTabId; |
+var firstTab; |
+ |
+chrome.test.runTests([ |
+ function setupWindow() { |
+ createWindow([pageUrl("a")], {}, pass(function(winId, tabIds) { |
+ firstTabId = tabIds[0]; |
+ chrome.tabs.get(firstTabId, pass(function(tab) { |
+ assertTrue(tab.width > 0); |
+ assertTrue(tab.height > 0); |
+ firstTab = tab; |
+ })); |
+ })); |
+ }, |
+ |
+ function sizeAfterDuplicatingTab() { |
+ chrome.tabs.duplicate(firstTabId, pass(function(tab) { |
+ assertEq(firstTab.width, tab.width); |
+ assertEq(firstTab.height, tab.height); |
+ })); |
+ } |
+]); |