| Index: chrome/test/data/extensions/api_test/window_update/show_state/test.js
|
| diff --git a/chrome/test/data/extensions/api_test/window_update/show_state/test.js b/chrome/test/data/extensions/api_test/window_update/show_state/test.js
|
| index c3d636664c9f715618897c3b0b30af2f08570bdc..6d46dfb97d2968a81466dd80cd7f91de26552e10 100644
|
| --- a/chrome/test/data/extensions/api_test/window_update/show_state/test.js
|
| +++ b/chrome/test/data/extensions/api_test/window_update/show_state/test.js
|
| @@ -6,20 +6,14 @@ var pass = chrome.test.callbackPass;
|
|
|
| var width = 0;
|
| var height = 0;
|
| -var changedWidth = 500;
|
| -var changedHeight = 500;
|
| +
|
| +var deltaWidth = 20;
|
| +var deltaHeight = 30;
|
|
|
| function checkRestoreWithBounds(theWindow) {
|
| chrome.test.assertEq('normal', theWindow.state);
|
| - if (theWindow.type == 'panel') {
|
| - // Panels decide their own bounds.
|
| - chrome.test.assertEq(width, theWindow.width);
|
| - chrome.test.assertEq(height, theWindow.height);
|
| - } else {
|
| - chrome.test.assertEq(changedWidth, theWindow.width);
|
| - chrome.test.assertEq(changedHeight, theWindow.height);
|
| - }
|
| -
|
| + chrome.test.assertEq(width, theWindow.width);
|
| + chrome.test.assertEq(height, theWindow.height);
|
| chrome.windows.remove(theWindow.id, pass());
|
| }
|
|
|
| @@ -35,8 +29,10 @@ function checkMaximized(theWindow) {
|
| height < theWindow.height);
|
| }
|
|
|
| + width += deltaWidth;
|
| + height += deltaHeight;
|
| chrome.windows.update(theWindow.id,
|
| - {'state': 'normal', width: changedWidth, height: changedHeight},
|
| + {'state': 'normal', 'width': width, 'height': height},
|
| pass(checkRestoreWithBounds));
|
| }
|
|
|
|
|