| Index: chrome/test/data/extensions/api_test/window_open/panel_detached/test.js
|
| diff --git a/chrome/test/data/extensions/api_test/window_open/panel_detached/test.js b/chrome/test/data/extensions/api_test/window_open/panel_detached/test.js
|
| deleted file mode 100644
|
| index 5d36b2cb0db56d1fc74eb0b9c64d0749efd66501..0000000000000000000000000000000000000000
|
| --- a/chrome/test/data/extensions/api_test/window_open/panel_detached/test.js
|
| +++ /dev/null
|
| @@ -1,82 +0,0 @@
|
| -// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -function createCallback(win) {
|
| - chrome.test.assertEq('panel', win.type);
|
| - // Unlike docked panels, detached is not alwaysOnTop.
|
| - chrome.test.assertEq(false, win.alwaysOnTop);
|
| - // Close the detached window to prevent the stacking.
|
| - chrome.windows.remove(win.id, chrome.test.callbackPass());
|
| -}
|
| -
|
| -chrome.test.runTests([
|
| - // No origin nor size is specified.
|
| - function openDetachedPanel() {
|
| - chrome.test.listenOnce(chrome.windows.onCreated, function(window) {
|
| - chrome.test.assertEq("panel", window.type);
|
| - chrome.test.assertTrue(!window.incognito);
|
| - chrome.test.assertTrue(window.width > 0);
|
| - chrome.test.assertTrue(window.height > 0);
|
| - });
|
| - chrome.windows.create(
|
| - { 'url': 'about:blank',
|
| - 'type': 'detached_panel' },
|
| - chrome.test.callbackPass(createCallback));
|
| - },
|
| -
|
| - // Verify supplied size is obeyed even if no origin is specified.
|
| - function openDetachedPanelWithSize() {
|
| - chrome.test.listenOnce(chrome.windows.onCreated, function(window) {
|
| - chrome.test.assertEq("panel", window.type);
|
| - chrome.test.assertTrue(!window.incognito);
|
| - chrome.test.assertEq(250, window.width);
|
| - chrome.test.assertEq(200, window.height);
|
| - });
|
| - // Do not use the big size because the maximium panel sizes are based on a
|
| - // factor of the screen resolution. Some try bots might be configured with
|
| - // 800x600 resolution that causes the panel not to exceed 280x280.
|
| - chrome.windows.create(
|
| - { 'url': 'about:blank',
|
| - 'type': 'detached_panel', 'width': 250, 'height': 200 },
|
| - chrome.test.callbackPass(createCallback));
|
| - },
|
| -
|
| - // Verify supplied origin is obeyed even if no size is specified.
|
| - function openDetachedPanelWithOrigin() {
|
| - chrome.test.listenOnce(chrome.windows.onCreated, function(window) {
|
| - chrome.test.assertEq("panel", window.type);
|
| - chrome.test.assertTrue(!window.incognito);
|
| - // The top position could be changed when the stacking mode is enabled.
|
| - //chrome.test.assertEq(42, window.top);
|
| - chrome.test.assertEq(24, window.left);
|
| - chrome.test.assertTrue(window.width > 0);
|
| - chrome.test.assertTrue(window.height > 0);
|
| - });
|
| - chrome.windows.create(
|
| - { 'url': 'about:blank',
|
| - 'type': 'detached_panel', 'top': 42, 'left': 24 },
|
| - chrome.test.callbackPass(createCallback));
|
| - },
|
| -
|
| - // Verify supplied bounds are obeyed.
|
| - function openDetachedPanelWithFullBounds() {
|
| - chrome.test.listenOnce(chrome.windows.onCreated, function(window) {
|
| - chrome.test.assertEq("panel", window.type);
|
| - chrome.test.assertTrue(!window.incognito);
|
| - // The top position could be changed when the stacking mode is enabled.
|
| - //chrome.test.assertEq(42, window.top);
|
| - chrome.test.assertEq(24, window.left);
|
| - chrome.test.assertEq(250, window.width);
|
| - chrome.test.assertEq(200, window.height);
|
| - });
|
| - // Do not use the big size because the maximium panel sizes are based on a
|
| - // factor of the screen resolution and the try bot might be configured with
|
| - // 800x600 resolution.
|
| - chrome.windows.create(
|
| - { 'url': 'about:blank',
|
| - 'type': 'detached_panel', 'top': 42, 'left': 24,
|
| - 'width': 250, 'height': 200 },
|
| - chrome.test.callbackPass(createCallback));
|
| - }
|
| -]);
|
|
|