Index: chrome/test/data/extensions/platform_apps/windows_api_properties/main.js |
diff --git a/chrome/test/data/extensions/platform_apps/windows_api_properties/main.js b/chrome/test/data/extensions/platform_apps/windows_api_properties/main.js |
index d4695812b0d260affaf968e72471c2574142e2be..8c5535ccc37588090d28c9c38c51436783c73cdd 100644 |
--- a/chrome/test/data/extensions/platform_apps/windows_api_properties/main.js |
+++ b/chrome/test/data/extensions/platform_apps/windows_api_properties/main.js |
@@ -39,11 +39,17 @@ var tests = [ |
makeEventTest('onMaximized', function() { current.maximize(); }), |
makeEventTest('onRestored', function() { |
current.minimize(); |
- current.restore(); |
+ current['onMinimized'].addListener(function() { |
+ current.restore(); |
+ }); |
}), |
makeEventTest('onRestored', function() { |
current.maximize(); |
- current.restore(); |
+ // Don't call |restore| immediately. On GTK+ platform the restore method |
+ // will depend on the previous window state. |
+ current['onMaximized'].addListener(function() { |
+ current.restore(); |
+ }) |
}), |
makeEventTest('onBoundsChanged', function() { |
current.setBounds({left:5, top:5, width:100, height:100}); |