Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / test / data / extensions / api_test / browser_action / getters / update.js
blobbb8a125682c1615f0fdaeb1841d0ee29284d4bcd
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.test.runTests([
8 function getBadgeText() {
9 chrome.browserAction.getBadgeText({}, pass(function(result) {
10 chrome.test.assertEq("Text", result);
11 }));
14 function getBadgeBackgroundColor() {
15 chrome.browserAction.getBadgeBackgroundColor({}, pass(function(result) {
16 chrome.test.assertEq([255, 0, 0, 255], result);
17 }));
20 function getPopup() {
21 chrome.browserAction.getPopup({}, pass(function(result) {
22 chrome.test.assertTrue(
23 /chrome-extension\:\/\/[a-p]{32}\/Popup\.html/.test(result));
24 }));
27 function getTitle() {
28 chrome.browserAction.getTitle({}, pass(function(result) {
29 chrome.test.assertEq("Title", result);
30 }));
32 ]);