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
;
8 function getBadgeText() {
9 chrome
.browserAction
.getBadgeText({}, pass(function(result
) {
10 chrome
.test
.assertEq("Text", result
);
14 function getBadgeBackgroundColor() {
15 chrome
.browserAction
.getBadgeBackgroundColor({}, pass(function(result
) {
16 chrome
.test
.assertEq([255, 0, 0, 255], result
);
21 chrome
.browserAction
.getPopup({}, pass(function(result
) {
22 chrome
.test
.assertTrue(
23 /chrome-extension\:\/\/[a-p]{32}\/Popup\.html/.test(result
));
28 chrome
.browserAction
.getTitle({}, pass(function(result
) {
29 chrome
.test
.assertEq("Title", result
);