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

Unified Diff: ui/aura/window_unittest.cc

Issue 8538017: Fix WindowTest.Transform, and also make it run on Windows. Some of it (the bits that rely on wind... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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
« no previous file with comments | « no previous file | ui/aura_shell/desktop_event_filter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_unittest.cc
===================================================================
--- ui/aura/window_unittest.cc (revision 109647)
+++ ui/aura/window_unittest.cc (working copy)
@@ -690,11 +690,9 @@
EXPECT_EQ(w2.get(), parent->children()[1]);
}
-#if !defined(OS_WIN)
// Tests transformation on the desktop.
TEST_F(WindowTest, Transform) {
Desktop* desktop = Desktop::GetInstance();
- desktop->ShowDesktop();
gfx::Size size = desktop->GetHostSize();
EXPECT_EQ(gfx::Rect(size),
gfx::Screen::GetMonitorAreaNearestPoint(gfx::Point()));
@@ -712,34 +710,7 @@
desktop->bounds().ToString());
EXPECT_EQ(gfx::Rect(transformed_size).ToString(),
gfx::Screen::GetMonitorAreaNearestPoint(gfx::Point()).ToString());
-
- ActivateWindowDelegate d1;
- scoped_ptr<Window> w1(
- CreateTestWindowWithDelegate(&d1, 1, gfx::Rect(0, 10, 50, 50), NULL));
- w1->Show();
-
- gfx::Point miss_point(5, 5);
- transform.TransformPoint(miss_point);
- MouseEvent mouseev1(ui::ET_MOUSE_PRESSED,
- miss_point,
- ui::EF_LEFT_BUTTON_DOWN);
- desktop->DispatchMouseEvent(&mouseev1);
- EXPECT_FALSE(w1->GetFocusManager()->GetFocusedWindow());
- MouseEvent mouseup(ui::ET_MOUSE_RELEASED,
- miss_point,
- ui::EF_LEFT_BUTTON_DOWN);
- desktop->DispatchMouseEvent(&mouseup);
-
- gfx::Point hit_point(5, 15);
- transform.TransformPoint(hit_point);
- MouseEvent mouseev2(ui::ET_MOUSE_PRESSED,
- hit_point,
- ui::EF_LEFT_BUTTON_DOWN);
- desktop->DispatchMouseEvent(&mouseev2);
- EXPECT_EQ(w1.get(), desktop->active_window());
- EXPECT_EQ(w1.get(), w1->GetFocusManager()->GetFocusedWindow());
}
-#endif
// Various assertions for transient children.
TEST_F(WindowTest, TransientChildren) {
« no previous file with comments | « no previous file | ui/aura_shell/desktop_event_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698