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

Unified Diff: chrome/test/data/extensions/api_test/window_open/window_size/test.js

Issue 13375002: Revert issue 158379 (chrome.window.create height) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/extensions/api_test/window_open/window_size/test.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
+ }));
+ }
+]);
« no previous file with comments | « chrome/test/data/extensions/api_test/window_open/window_size/test.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698