| 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 e0496df52c83d085315052dd3861bc1dea63a20b..f5a1e3a270eb93065a3cae7e480074cd90834004 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
|
| @@ -10,13 +10,34 @@ var height = 0;
|
| var deltaWidth = 20;
|
| var deltaHeight = 30;
|
|
|
| -function checkRestoreWithBounds(theWindow) {
|
| +function checkRestoreAfterFullscreen(theWindow) {
|
| chrome.test.assertEq('normal', theWindow.state);
|
| chrome.test.assertEq(width, theWindow.width);
|
| chrome.test.assertEq(height, theWindow.height);
|
| chrome.windows.remove(theWindow.id, pass());
|
| }
|
|
|
| +function checkFullscreen(theWindow) {
|
| + if (theWindow.type == 'panel') {
|
| + // Panels do not support fullscreen.
|
| + chrome.test.assertEq('normal', theWindow.state);
|
| + } else {
|
| + chrome.test.assertEq('fullscreen', theWindow.state);
|
| + }
|
| +
|
| + chrome.windows.update(theWindow.id, {'state': 'normal'},
|
| + pass(checkRestoreAfterFullscreen));
|
| +}
|
| +
|
| +function checkRestoreWithBounds(theWindow) {
|
| + chrome.test.assertEq('normal', theWindow.state);
|
| + chrome.test.assertEq(width, theWindow.width);
|
| + chrome.test.assertEq(height, theWindow.height);
|
| +
|
| + chrome.windows.update(theWindow.id, {'state': 'fullscreen'},
|
| + pass(checkFullscreen));
|
| +}
|
| +
|
| function checkMaximized(theWindow) {
|
| if (theWindow.type == 'panel') {
|
| // Maximize is the same as restore for panels.
|
|
|