| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "base/test/test_timeouts.h" | 6 #include "base/test/test_timeouts.h" |
| 7 #include "chrome/test/automation/browser_proxy.h" | 7 #include "chrome/test/automation/browser_proxy.h" |
| 8 #include "chrome/test/automation/tab_proxy.h" | 8 #include "chrome/test/automation/tab_proxy.h" |
| 9 #include "chrome/test/automation/window_proxy.h" | 9 #include "chrome/test/automation/window_proxy.h" |
| 10 #include "chrome/test/ui/ui_test.h" | 10 #include "chrome/test/ui/ui_test.h" |
| 11 #include "chrome/test/ui_test_utils.h" | 11 #include "chrome/test/ui_test_utils.h" |
| 12 #include "gfx/point.h" | |
| 13 #include "gfx/rect.h" | |
| 14 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
| 13 #include "ui/gfx/point.h" |
| 14 #include "ui/gfx/rect.h" |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 class MouseLeaveTest : public UITest { | 18 class MouseLeaveTest : public UITest { |
| 19 public: | 19 public: |
| 20 MouseLeaveTest() { | 20 MouseLeaveTest() { |
| 21 dom_automation_enabled_ = true; | 21 dom_automation_enabled_ = true; |
| 22 show_window_ = true; | 22 show_window_ = true; |
| 23 } | 23 } |
| 24 | 24 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // a javascript onMouseOut event. | 78 // a javascript onMouseOut event. |
| 79 ASSERT_TRUE(window->SimulateOSMouseMove(above_content_point)); | 79 ASSERT_TRUE(window->SimulateOSMouseMove(above_content_point)); |
| 80 | 80 |
| 81 // Wait on the correct final value of the cookie. | 81 // Wait on the correct final value of the cookie. |
| 82 ASSERT_TRUE(WaitUntilCookieValue( | 82 ASSERT_TRUE(WaitUntilCookieValue( |
| 83 tab.get(), test_url, "__state", | 83 tab.get(), test_url, "__state", |
| 84 TestTimeouts::large_test_timeout_ms(), "initial,entered,left")); | 84 TestTimeouts::large_test_timeout_ms(), "initial,entered,left")); |
| 85 } | 85 } |
| 86 | 86 |
| 87 } // namespace | 87 } // namespace |
| OLD | NEW |