1 // Copyright 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.
5 chrome.browserAction.onClicked.addListener(function(tab) {
6 chrome.tabs.create({ url: 'about:blank' }, function(newtab) {
7 chrome.windows.get(tab.windowId, { populate: true }, function(window) {
9 chrome.test.notifyFail(
10 'Could not get window for the tab (probably due to wrong profile)');
13 chrome.test.assertEq(2, window.tabs.length);
14 chrome.test.notifyPass();