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

Unified Diff: chrome/test/data/extensions/platform_apps/windows_api/test.js

Issue 10659021: Move chrome.appWindow to chrome.app.window. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased and resolved conflicts Created 8 years, 6 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
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();
}));
},*/
]);

Powered by Google App Engine
This is Rietveld 408576698