- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / api_test / window_open / window_size / test.js
1 // Copyright (c) 2013 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 chrome.test.runTests([
6   function openSizedWindow() {
7     chrome.windows.create(
8       // Note: width and height must be larger than the minimum window size
9       // and smaller than the max (screen) size.
10       { 'url': chrome.extension.getURL('popup.html'), 'type': 'popup',
11         'width': 200, 'height': 200 },
12       chrome.test.callbackPass(function(win) {
13         chrome.test.assertEq(200, win.width);
14         chrome.test.assertEq(200, win.height);
15       }));
16   }
17 ]);