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

Unified Diff: ash/wm/overview/window_selector_unittest.cc

Issue 257763008: Added a11y alert on entering overview mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed small typographic issue Created 6 years, 8 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: ash/wm/overview/window_selector_unittest.cc
diff --git a/ash/wm/overview/window_selector_unittest.cc b/ash/wm/overview/window_selector_unittest.cc
index 028bacd816856a72a8bc493ee611552cef90ea8f..810a908c4ff81c3561b2ce8a6fd2c1cc1f5f6e0e 100644
--- a/ash/wm/overview/window_selector_unittest.cc
+++ b/ash/wm/overview/window_selector_unittest.cc
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "ash/accessibility_delegate.h"
#include "ash/drag_drop/drag_drop_controller.h"
#include "ash/root_window_controller.h"
#include "ash/screen_util.h"
@@ -252,6 +253,17 @@ class WindowSelectorTest : public test::AshTestBase {
DISALLOW_COPY_AND_ASSIGN(WindowSelectorTest);
};
+// Tests that an a11y alert is sent on entering overview mode.
+TEST_F(WindowSelectorTest, A11yAlertOnOverviewMode) {
+ gfx::Rect bounds(0, 0, 400, 400);
+ AccessibilityDelegate* delegate =
+ ash::Shell::GetInstance()->accessibility_delegate();
+ scoped_ptr<aura::Window> window1(CreateWindow(bounds));
tdanderson 2014/04/28 21:59:55 Perhaps add an EXPECT_NE here to check that the al
Nina 2014/04/29 13:12:17 Done.
+ ToggleOverview();
+ EXPECT_EQ(delegate->GetLastAccessibilityAlert(),
+ A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED);
+}
+
// Tests entering overview mode with two windows and selecting one.
TEST_F(WindowSelectorTest, Basic) {
gfx::Rect bounds(0, 0, 400, 400);

Powered by Google App Engine
This is Rietveld 408576698