| Index: chrome/test/data/extensions/api_test/tabs/basics/query.js
|
| diff --git a/chrome/test/data/extensions/api_test/tabs/basics/query.js b/chrome/test/data/extensions/api_test/tabs/basics/query.js
|
| index bbe6fe774bd03e072b091aabc431216c01eb54cd..5ebd145b266b6104395c36e92415e9f2b331904c 100644
|
| --- a/chrome/test/data/extensions/api_test/tabs/basics/query.js
|
| +++ b/chrome/test/data/extensions/api_test/tabs/basics/query.js
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2012 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.
|
|
|
| @@ -79,6 +79,19 @@ chrome.test.runTests([
|
| }));
|
| },
|
|
|
| + function queryCurrentWindow() {
|
| + chrome.windows.getCurrent(function(win) {
|
| + chrome.tabs.query({windowId: chrome.windows.WINDOW_ID_CURRENT},
|
| + pass(function(tabs) {
|
| + // The current window should only contain this test page.
|
| + assertEq(1, tabs.length);
|
| + assertEq(win.id, tabs[0].windowId);
|
| + assertEq(location.href, tabs[0].url);
|
| + assertEq(location.href, tabs[0].title);
|
| + }));
|
| + });
|
| + },
|
| +
|
| function queryPinned() {
|
| chrome.tabs.query({pinned: true}, pass(function(tabs) {
|
| assertEq(pinned_tabs.length, tabs.length);
|
|
|