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

Unified Diff: ui/views/widget/widget_interactive_uitest.cc

Issue 782673002: MacViews: tryjobs for toolkit_views=1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: latest crrev/901823002 Created 5 years, 10 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: ui/views/widget/widget_interactive_uitest.cc
diff --git a/ui/views/widget/widget_interactive_uitest.cc b/ui/views/widget/widget_interactive_uitest.cc
index 845360303cf4d21a26df9fdfc637e7a756a57060..46325d8cbae083e314fa860edb6f0452b58edfd1 100644
--- a/ui/views/widget/widget_interactive_uitest.cc
+++ b/ui/views/widget/widget_interactive_uitest.cc
@@ -719,9 +719,18 @@ class ModalDialogDelegate : public DialogDelegateView {
DISALLOW_COPY_AND_ASSIGN(ModalDialogDelegate);
};
+// TODO(tapted): Implement modal widgets for Mac.
+#if defined(OS_MACOSX) && !defined(USE_AURA)
+#define MAYBE_WindowModalWindowDestroyedActivationTest \
+ DISABLED_WindowModalWindowDestroyedActivationTest
+#else
+#define MAYBE_WindowModalWindowDestroyedActivationTest \
+ WindowModalWindowDestroyedActivationTest
+#endif
+
// Tests whether the focused window is set correctly when a modal window is
// created and destroyed. When it is destroyed it should focus the owner window.
-TEST_F(WidgetTestInteractive, WindowModalWindowDestroyedActivationTest) {
+TEST_F(WidgetTestInteractive, MAYBE_WindowModalWindowDestroyedActivationTest) {
TestWidgetFocusChangeListener focus_listener;
WidgetFocusManager::GetInstance()->AddFocusChangeListener(&focus_listener);
const std::vector<NativeViewPair>& focus_changes =
@@ -774,8 +783,19 @@ TEST_F(WidgetTestInteractive, WindowModalWindowDestroyedActivationTest) {
WidgetFocusManager::GetInstance()->RemoveFocusChangeListener(&focus_listener);
}
+// Disabled on Mac. Desktop Mac doesn't have system modal widgets since Carbon
+// was deprecated. TODO(tapted): Implement modal windows and try out AppKit's
+// application modal windows here if needed.
+#if defined(OS_MACOSX) && !defined(USE_AURA)
+#define MAYBE_SystemModalWindowReleasesCapture \
+ DISABLED_SystemModalWindowReleasesCapture
+#else
+#define MAYBE_SystemModalWindowReleasesCapture \
+ SystemModalWindowReleasesCapture
+#endif
+
// Test that when opening a system-modal window, capture is released.
-TEST_F(WidgetTestInteractive, SystemModalWindowReleasesCapture) {
+TEST_F(WidgetTestInteractive, MAYBE_SystemModalWindowReleasesCapture) {
TestWidgetFocusChangeListener focus_listener;
WidgetFocusManager::GetInstance()->AddFocusChangeListener(&focus_listener);
« no previous file with comments | « ui/views/test/event_generator_delegate_mac.mm ('k') | ui/views_content_client/views_content_client_main_parts_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698