Index: chrome/test/data/extensions/platform_apps/windows_api/test.js |
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 f73eea7da6f86a6e639780ad2ff0c55228e32633..151ba6911bda09474fae85b7373b161d10567fe3 100644 |
--- a/chrome/test/data/extensions/platform_apps/windows_api/test.js |
+++ b/chrome/test/data/extensions/platform_apps/windows_api/test.js |
@@ -67,6 +67,29 @@ chrome.app.runtime.onLaunched.addListener(function() { |
})); |
}, |
+ function testRestoreBounds() { |
+ chrome.app.window.create('test.html', |
+ {id: 'test_window', left: 20, height: 20, width: 250, height: 200}, |
+ callbackPass(function(win) { |
+ chrome.test.assertEq(250, win.contentWindow.innerWidth); |
+ chrome.test.assertEq(200, win.contentWindow.innerHeight); |
+ // TODO(jeremya): use setBounds() here when available instead of DOM |
+ // methods. |
+ win.contentWindow.moveTo(50, 50); |
+ win.contentWindow.resizeTo(500, 250); |
+ win.close(); |
+ chrome.app.window.create('test.html', |
+ {id: 'test_window', left: 20, height: 20, width: 250, height: 200}, |
+ callbackPass(function(win) { |
+ // TODO(jeremya): also check that the position has been restored once |
+ // getBounds() is available. |
+ chrome.test.assertEq(500, win.contentWindow.innerWidth); |
+ chrome.test.assertEq(250, win.contentWindow.innerHeight); |
+ win.close(); |
+ })); |
+ })); |
+ }, |
+ |
function testUpdateWindowWidth() { |
chrome.app.window.create('test.html', |
{width:512, height:384, frame:'none'}, |