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

Unified Diff: chrome/test/data/extensions/platform_apps/windows_api_properties/main.js

Issue 18741006: [GTK] Report isMinimized and correctly restore app windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Enable PlatformAppBrowserTest.WindowsApiProperties on GTK. Created 7 years, 5 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_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});

Powered by Google App Engine
This is Rietveld 408576698