OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "base/file_path.h" | 5 #include "base/file_path.h" |
6 #include "chrome/test/automation/browser_proxy.h" | 6 #include "chrome/test/automation/browser_proxy.h" |
7 #include "chrome/test/automation/tab_proxy.h" | 7 #include "chrome/test/automation/tab_proxy.h" |
8 #include "chrome/test/automation/window_proxy.h" | 8 #include "chrome/test/automation/window_proxy.h" |
9 #include "chrome/test/ui/ui_test.h" | 9 #include "chrome/test/ui/ui_test.h" |
10 #include "chrome/test/ui_test_utils.h" | 10 #include "chrome/test/ui_test_utils.h" |
11 #include "gfx/point.h" | 11 #include "gfx/point.h" |
12 #include "gfx/rect.h" | 12 #include "gfx/rect.h" |
13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
14 | 14 |
15 #if defined(OS_WIN) || defined(OS_MACOSX) | |
16 // Test succeeds locally, flaky on trybot | |
17 // http://code.google.com/p/chromium/issues/detail?id=26349 | |
18 // http://code.google.com/p/chromium/issues/detail?id=45581 | |
19 #define TestOnMouseOut DISABLED_TestOnMouseOut | |
20 #endif // defined(OS_WIN) || defined(OS_MACOSX) | |
21 | |
22 namespace { | 15 namespace { |
23 | 16 |
24 class MouseLeaveTest : public UITest { | 17 class MouseLeaveTest : public UITest { |
25 public: | 18 public: |
26 MouseLeaveTest() { | 19 MouseLeaveTest() { |
27 dom_automation_enabled_ = true; | 20 dom_automation_enabled_ = true; |
28 show_window_ = true; | 21 show_window_ = true; |
29 } | 22 } |
30 | 23 |
31 DISALLOW_COPY_AND_ASSIGN(MouseLeaveTest); | 24 DISALLOW_COPY_AND_ASSIGN(MouseLeaveTest); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 // Move the cursor above the content again, which should trigger | 70 // Move the cursor above the content again, which should trigger |
78 // a javascript onMouseOut event. | 71 // a javascript onMouseOut event. |
79 ASSERT_TRUE(window->SimulateOSMouseMove(above_content_point)); | 72 ASSERT_TRUE(window->SimulateOSMouseMove(above_content_point)); |
80 | 73 |
81 // Wait on the correct final value of the cookie. | 74 // Wait on the correct final value of the cookie. |
82 ASSERT_TRUE(WaitUntilCookieValue( | 75 ASSERT_TRUE(WaitUntilCookieValue( |
83 tab.get(), test_url, "__state", timeout_ms, "initial,entered,left")); | 76 tab.get(), test_url, "__state", timeout_ms, "initial,entered,left")); |
84 } | 77 } |
85 | 78 |
86 } // namespace | 79 } // namespace |
OLD | NEW |