chromium/chrome/test/data/extensions/platform_apps/windows_api_visible_on_all_workspaces/in_stable/background.js

// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// All these tests are run in Stable channel.

chrome.app.runtime.onLaunched.addListener(function() {
  chrome.test.runTests([

    // Check CreateWindowOptions.visibleOnAllWorkspaces().
    function testCreateOption() {
      chrome.app.window.create(
          'index.html', {
            visibleOnAllWorkspaces: true,
          }, chrome.test.callbackPass(function () {}));
    },

    // Check chrome.app.window.canSetVisibleOnAllWorkspaces().
    function testCanSetVisibleOnAllWorkspaces() {
      chrome.test.assertTrue(
          typeof chrome.app.window.canSetVisibleOnAllWorkspaces == 'function');
      chrome.test.callbackPass(function () {})();
    },

  ]);
});