OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/aura/window.h" | 5 #include "ui/aura/window.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/stringprintf.h" | 9 #include "base/stringprintf.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
(...skipping 1248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1259 EXPECT_FALSE(window->layer()->visible()); | 1259 EXPECT_FALSE(window->layer()->visible()); |
1260 window->Show(); | 1260 window->Show(); |
1261 | 1261 |
1262 client.set_ignore_visibility_changes(true); | 1262 client.set_ignore_visibility_changes(true); |
1263 window->Hide(); | 1263 window->Hide(); |
1264 EXPECT_FALSE(window->IsVisible()); | 1264 EXPECT_FALSE(window->IsVisible()); |
1265 EXPECT_TRUE(window->layer()->visible()); | 1265 EXPECT_TRUE(window->layer()->visible()); |
1266 } | 1266 } |
1267 | 1267 |
1268 // Tests mouse events on window change. | 1268 // Tests mouse events on window change. |
1269 TEST_F(WindowTest, MouseEventsOnWindowChange) { | 1269 // See http://crbug.com/112246 |
| 1270 TEST_F(WindowTest, FAILS_MouseEventsOnWindowChange) { |
1270 RootWindow* root_window = RootWindow::GetInstance(); | 1271 RootWindow* root_window = RootWindow::GetInstance(); |
1271 gfx::Size size = root_window->GetHostSize(); | 1272 gfx::Size size = root_window->GetHostSize(); |
1272 | 1273 |
1273 EventGenerator generator; | 1274 EventGenerator generator; |
1274 generator.MoveMouseTo(50, 50); | 1275 generator.MoveMouseTo(50, 50); |
1275 | 1276 |
1276 MouseTrackingDelegate d1; | 1277 MouseTrackingDelegate d1; |
1277 scoped_ptr<Window> w1(CreateTestWindowWithDelegate(&d1, 1, | 1278 scoped_ptr<Window> w1(CreateTestWindowWithDelegate(&d1, 1, |
1278 gfx::Rect(0, 0, 100, 100), root_window)); | 1279 gfx::Rect(0, 0, 100, 100), root_window)); |
1279 RunAllPendingInMessageLoop(); | 1280 RunAllPendingInMessageLoop(); |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1550 | 1551 |
1551 w1.reset(); // Deletes w11 and w111. | 1552 w1.reset(); // Deletes w11 and w111. |
1552 w11 = NULL; | 1553 w11 = NULL; |
1553 w111 = NULL; | 1554 w111 = NULL; |
1554 EXPECT_EQ(2, observer.added_count()); | 1555 EXPECT_EQ(2, observer.added_count()); |
1555 EXPECT_EQ(2, observer.removed_count()); | 1556 EXPECT_EQ(2, observer.removed_count()); |
1556 } | 1557 } |
1557 | 1558 |
1558 } // namespace test | 1559 } // namespace test |
1559 } // namespace aura | 1560 } // namespace aura |
OLD | NEW |