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

Side by Side Diff: content/browser/mouseleave_browsertest.cc

Issue 10539134: TabContentsWrapper -> TabContents, part 57. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: last use Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/browser/media_browsertest.cc ('k') | content/browser/plugin_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/file_path.h" 5 #include "base/file_path.h"
6 #include "base/utf_string_conversions.h" 6 #include "base/utf_string_conversions.h"
7 #include "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/test/base/in_process_browser_test.h" 8 #include "chrome/test/base/in_process_browser_test.h"
9 #include "chrome/test/base/ui_test_utils.h" 9 #include "chrome/test/base/ui_test_utils.h"
10 #include "content/public/browser/web_contents.h" 10 #include "content/public/browser/web_contents.h"
(...skipping 13 matching lines...) Expand all
24 // Missing automation provider support: http://crbug.com/45892 24 // Missing automation provider support: http://crbug.com/45892
25 #define MAYBE_TestOnMouseOut DISABLED_TestOnMouseOut 25 #define MAYBE_TestOnMouseOut DISABLED_TestOnMouseOut
26 #else 26 #else
27 #define MAYBE_TestOnMouseOut TestOnMouseOut 27 #define MAYBE_TestOnMouseOut TestOnMouseOut
28 #endif 28 #endif
29 29
30 IN_PROC_BROWSER_TEST_F(MouseLeaveTest, MAYBE_TestOnMouseOut) { 30 IN_PROC_BROWSER_TEST_F(MouseLeaveTest, MAYBE_TestOnMouseOut) {
31 GURL test_url = ui_test_utils::GetTestUrl( 31 GURL test_url = ui_test_utils::GetTestUrl(
32 FilePath(), FilePath(FILE_PATH_LITERAL("mouseleave.html"))); 32 FilePath(), FilePath(FILE_PATH_LITERAL("mouseleave.html")));
33 33
34 content::WebContents* tab = browser()->GetSelectedWebContents(); 34 content::WebContents* tab = browser()->GetActiveWebContents();
35 gfx::Rect tab_view_bounds; 35 gfx::Rect tab_view_bounds;
36 tab->GetView()->GetContainerBounds(&tab_view_bounds); 36 tab->GetView()->GetContainerBounds(&tab_view_bounds);
37 37
38 gfx::Point in_content_point( 38 gfx::Point in_content_point(
39 tab_view_bounds.x() + tab_view_bounds.width() / 2, 39 tab_view_bounds.x() + tab_view_bounds.width() / 2,
40 tab_view_bounds.y() + 10); 40 tab_view_bounds.y() + 10);
41 gfx::Point above_content_point( 41 gfx::Point above_content_point(
42 tab_view_bounds.x() + tab_view_bounds.width() / 2, 42 tab_view_bounds.x() + tab_view_bounds.width() / 2,
43 tab_view_bounds.y() - 2); 43 tab_view_bounds.y() - 2);
44 44
(...skipping 22 matching lines...) Expand all
67 // a javascript onMouseOut event. 67 // a javascript onMouseOut event.
68 ui_controls::SendMouseMove(above_content_point.x(), above_content_point.y()); 68 ui_controls::SendMouseMove(above_content_point.x(), above_content_point.y());
69 69
70 // Wait on the correct final value of the cookie. 70 // Wait on the correct final value of the cookie.
71 string16 left_expected_title(ASCIIToUTF16("left")); 71 string16 left_expected_title(ASCIIToUTF16("left"));
72 ui_test_utils::TitleWatcher left_title_watcher(tab, left_expected_title); 72 ui_test_utils::TitleWatcher left_title_watcher(tab, left_expected_title);
73 EXPECT_EQ(left_expected_title, left_title_watcher.WaitAndGetTitle()); 73 EXPECT_EQ(left_expected_title, left_title_watcher.WaitAndGetTitle());
74 } 74 }
75 75
76 } // namespace 76 } // namespace
OLDNEW
« no previous file with comments | « content/browser/media_browsertest.cc ('k') | content/browser/plugin_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698