OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 // All these tests are run in Stable channel. |
| 6 |
| 7 var error = "The visibleOnAllWorkspaces option requires dev channel or newer."; |
| 8 |
| 9 chrome.app.runtime.onLaunched.addListener(function() { |
| 10 chrome.test.runTests([ |
| 11 |
| 12 // Check CreateWindowOptions.visibleOnAllWorkspaces(). |
| 13 function testCreateOption() { |
| 14 chrome.app.window.create( |
| 15 'index.html', { |
| 16 visibleOnAllWorkspaces: true, |
| 17 }, chrome.test.callbackFail(error)); |
| 18 }, |
| 19 |
| 20 // Check chrome.app.window.canSetVisibleOnAllWorkspaces(). |
| 21 function testCanSetVisibleOnAllWorkspaces() { |
| 22 chrome.test.assertTrue( |
| 23 chrome.app.window.canSetVisibleOnAllWorkspaces === undefined); |
| 24 chrome.test.callbackPass(function () {})(); |
| 25 }, |
| 26 |
| 27 ]); |
| 28 }); |
OLD | NEW |