diff options
author | huanr@chromium.org <huanr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-12 15:10:54 +0000 |
---|---|---|
committer | huanr@chromium.org <huanr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-12 15:10:54 +0000 |
commit | 6fe46e64b98318fa867892403e9cfb7037523c60 (patch) | |
tree | 9688e7b6dd8418cd1aea05351478a716a3d2d8b8 /chrome/test/automated_ui_tests/automated_ui_test_base.h | |
parent | 113550f55b0c70e49b755a41f3dc4fffaa68d573 (diff) | |
download | chromium_src-6fe46e64b98318fa867892403e9cfb7037523c60.zip chromium_src-6fe46e64b98318fa867892403e9cfb7037523c60.tar.gz chromium_src-6fe46e64b98318fa867892403e9cfb7037523c60.tar.bz2 |
Fix tab dragging test in automated UI test.
Review URL: http://codereview.chromium.org/119394
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18271 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automated_ui_tests/automated_ui_test_base.h')
-rw-r--r-- | chrome/test/automated_ui_tests/automated_ui_test_base.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/chrome/test/automated_ui_tests/automated_ui_test_base.h b/chrome/test/automated_ui_tests/automated_ui_test_base.h index 4724f83..cc4fb8648 100644 --- a/chrome/test/automated_ui_tests/automated_ui_test_base.h +++ b/chrome/test/automated_ui_tests/automated_ui_test_base.h @@ -42,6 +42,21 @@ class AutomatedUITestBase : public UITest { // Returns true if a duplicated tab is added. bool DuplicateTab(); + // Drags the active tab. The tab is dragged vertically to remove it from the + // tabstrip. Returns true if the tab is dragged, false otherwise. + // Note: returning true doesn't necessarily create a new window as the tab + // could be dragged in to another window. + bool DragTabOut(); + + // Drags the active tab. + // If |drag_right| is true, if there is a tab to the right of the active tab, + // the active tab is dragged to that tabs position. If |drag_right| is false, + // if there is a tab to the left of the active tab, the active tab is dragged + // to that tabs position. Returns true if the tab is dragged. If it returns + // false, the tab is not dragged, probably because no other tab exists to + // drag the active tab over. + bool DragActiveTab(bool drag_right); + // Go forward in active tab. // Returns true if successful, false otherwise. bool ForwardButton(); @@ -99,6 +114,13 @@ class AutomatedUITestBase : public UITest { // If success return the pointer to the newly created TabProxy and the // caller owns the TabProxy. Return NULL otherwise. scoped_refptr<TabProxy> GetActiveTab(); + + // Returns the WindowProxy associated with the given BrowserProxy + // (transferring ownership of the pointer to the caller) and brings that + // window to the top. + scoped_refptr<WindowProxy> GetAndActivateWindowForBrowser( + BrowserProxy* browser); + private: scoped_refptr<BrowserProxy> active_browser_; |