1 // Copyright (c) 2012 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 var pass = chrome.test.callbackPass;
7 chrome.tabs.getSelected(null, function(tab) {
10 chrome.pageAction.getPopup({tabId: tab.id}, pass(function(result) {
11 chrome.test.assertTrue(
12 /chrome-extension\:\/\/[a-p]{32}\/Popup\.html/.test(result));
17 chrome.pageAction.getTitle({tabId: tab.id}, pass(function(result) {
18 chrome.test.assertEq("Title", result);