summaryrefslogtreecommitdiffstats
path: root/chrome/test
diff options
context:
space:
mode:
authorjeremya@chromium.org <jeremya@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-11 20:03:08 +0000
committerjeremya@chromium.org <jeremya@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-11 20:03:08 +0000
commit22295741c015370083104061682bb72ec495be8f (patch)
tree332e86357a5aed68dcddb52e13495b164241eaca /chrome/test
parenta6b8a3966e7628a24bc5305b396e377e2df0005a (diff)
downloadchromium_src-22295741c015370083104061682bb72ec495be8f.zip
chromium_src-22295741c015370083104061682bb72ec495be8f.tar.gz
chromium_src-22295741c015370083104061682bb72ec495be8f.tar.bz2
Fix AppWindow.setBounds in the case where not all bounds are specified.
BUG=226275 Review URL: https://chromiumcodereview.appspot.com/13649006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193712 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test')
-rw-r--r--chrome/test/data/extensions/platform_apps/windows_api/test.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/chrome/test/data/extensions/platform_apps/windows_api/test.js b/chrome/test/data/extensions/platform_apps/windows_api/test.js
index 0cfa9ab..505fcee 100644
--- a/chrome/test/data/extensions/platform_apps/windows_api/test.js
+++ b/chrome/test/data/extensions/platform_apps/windows_api/test.js
@@ -181,6 +181,19 @@ chrome.app.runtime.onLaunched.addListener(function() {
}));
},
+ function testPartialSetBounds() {
+ chrome.app.window.create('test.html', {
+ bounds: { width: 512, height: 256 }
+ }, callbackPass(function(win) {
+ win.setBounds({ height: 348 });
+ var cb;
+ win.onBoundsChanged.addListener(cb = callbackPass(function() {
+ chrome.test.assertEq(348, win.getBounds().height);
+ win.close();
+ }));
+ }));
+ },
+
/*function testMaximize() {
chrome.app.window.create('test.html', {width: 200, height: 200},
callbackPass(function(win) {