1 // Copyright 2014 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 error = 'The alphaEnabled option can only be used with "frame: \'none\'".';
7 chrome.app.runtime.onLaunched.addListener(function() {
9 function testAlphaEnabledFrameNone() {
10 chrome.app.window.create('index.html', {
13 }, chrome.test.callbackPass(function (win) {}));
15 function testAlphaEnabledFrameChrome() {
16 chrome.app.window.create('index.html', {
18 }, chrome.test.callbackFail(error));
20 function testAlphaDisabledFrameChrome() {
21 chrome.app.window.create('index.html', {
22 }, chrome.test.callbackPass(function (win) {}));