Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(123)

Side by Side Diff: chrome/test/data/extensions/api_test/tabs/basics/tab_size.js

Issue 23108007: Add width and height to chrome.tabs.Tab. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code formatting. Check width and height is positive for newly created tab. Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/test/data/extensions/api_test/tabs/basics/tab_size.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 ]);
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/tabs/basics/tab_size.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698