Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(297)

Side by Side Diff: chrome/test/data/extensions/platform_apps/windows_api_visible_on_all_workspaces/in_stable/background.js

Issue 469993003: Add AppWindow.setVisibleOnAllWorkspaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Initialize AppWindow::CreateParams::visible_on_all_workspaces. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698