| 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 0c4b51ea6ae377bced24166e8bf4f13f3a1108ff..b87b5c453a94f7b7889bfd000165f78d27a461c7 100644
|
| --- a/chrome/test/data/extensions/platform_apps/windows_api/test.js
|
| +++ b/chrome/test/data/extensions/platform_apps/windows_api/test.js
|
| @@ -7,13 +7,13 @@ var callbackPass = chrome.test.callbackPass;
|
| chrome.experimental.app.onLaunched.addListener(function() {
|
| chrome.test.runTests([
|
| function testCreateWindow() {
|
| - chrome.appWindow.create('test.html', {}, callbackPass(function (win) {
|
| + chrome.app.window.create('test.html', {}, callbackPass(function (win) {
|
| chrome.test.assertTrue(typeof win.window === 'object');
|
| }))
|
| },
|
|
|
| function testUpdateWindowWidth() {
|
| - chrome.appWindow.create('test.html',
|
| + chrome.app.window.create('test.html',
|
| {width:512, height:384, frame:'custom'},
|
| callbackPass(function(win) {
|
| chrome.test.assertEq(512, win.innerWidth);
|
| @@ -26,7 +26,7 @@ chrome.experimental.app.onLaunched.addListener(function() {
|
| },
|
|
|
| /*function testMaximize() {
|
| - chrome.appWindow.create('test.html', {width: 200, height: 200},
|
| + chrome.app.window.create('test.html', {width: 200, height: 200},
|
| callbackPass(function(win) {
|
| win.onresize = callbackPass(function(e) {
|
| // Crude test to check we're somewhat maximized.
|
| @@ -35,12 +35,12 @@ chrome.experimental.app.onLaunched.addListener(function() {
|
| chrome.test.assertTrue(
|
| win.outerWidth > screen.availWidth * 0.8);
|
| });
|
| - win.chrome.appWindow.maximize();
|
| + win.chrome.app.window.maximize();
|
| }));
|
| },*/
|
|
|
| /*function testRestore() {
|
| - chrome.appWindow.create('test.html', {width: 200, height: 200},
|
| + chrome.app.window.create('test.html', {width: 200, height: 200},
|
| callbackPass(function(win) {
|
| var oldWidth = win.innerWidth;
|
| var oldHeight = win.innerHeight;
|
| @@ -57,9 +57,9 @@ chrome.experimental.app.onLaunched.addListener(function() {
|
| chrome.test.assertEq(oldHeight, win.innerHeight);
|
| });
|
| })
|
| - win.chrome.appWindow.restore();
|
| + win.chrome.app.window.restore();
|
| });
|
| - win.chrome.appWindow.maximize();
|
| + win.chrome.app.window.maximize();
|
| }));
|
| },*/
|
| ]);
|
|
|