| Index: chrome/test/data/extensions/api_test/window_open/window_size/test.js
|
| diff --git a/chrome/test/data/extensions/api_test/window_open/window_size/test.js b/chrome/test/data/extensions/api_test/window_open/window_size/test.js
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f8063d24300f761684bc6b68a2bf0441e719e091
|
| --- /dev/null
|
| +++ b/chrome/test/data/extensions/api_test/window_open/window_size/test.js
|
| @@ -0,0 +1,17 @@
|
| +// Copyright (c) 2013 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.
|
| +
|
| +chrome.test.runTests([
|
| + function openSizedWindow() {
|
| + chrome.windows.create(
|
| + // Note: width and height must be larger than the minimum window size
|
| + // and smaller than the max (screen) size.
|
| + { 'url': chrome.extension.getURL('popup.html'), 'type': 'popup',
|
| + 'width': 200, 'height': 200 },
|
| + chrome.test.callbackPass(function(win) {
|
| + chrome.test.assertEq(200, win.width);
|
| + chrome.test.assertEq(200, win.height);
|
| + }));
|
| + }
|
| +]);
|
|
|