diff options
author | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-25 21:58:14 +0000 |
---|---|---|
committer | tony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-25 21:58:14 +0000 |
commit | 37842818f13d1b1b4f6b6095c46233ff0c3b5011 (patch) | |
tree | f84912d5f489a38b5459d15321938f130d842f43 /chrome/browser | |
parent | d54523f5c34c62acbe1bbb0437b14459afc3820a (diff) | |
download | chromium_src-37842818f13d1b1b4f6b6095c46233ff0c3b5011.zip chromium_src-37842818f13d1b1b4f6b6095c46233ff0c3b5011.tar.gz chromium_src-37842818f13d1b1b4f6b6095c46233ff0c3b5011.tar.bz2 |
Convert a few other places from using ApplyAccelerator (async) to
using RunCommand (sync).
Review URL: http://codereview.chromium.org/436031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33131 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/dom_ui/new_tab_ui_uitest.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/chrome/browser/dom_ui/new_tab_ui_uitest.cc b/chrome/browser/dom_ui/new_tab_ui_uitest.cc index 3106922..1520b6e 100644 --- a/chrome/browser/dom_ui/new_tab_ui_uitest.cc +++ b/chrome/browser/dom_ui/new_tab_ui_uitest.cc @@ -38,8 +38,9 @@ TEST_F(NewTabUITest, NTPHasThumbnails) { ASSERT_EQ(1, tab_count); // Bring up a new tab page. - window->ApplyAccelerator(IDC_NEW_TAB); - WaitUntilTabCount(2); + window->RunCommand(IDC_NEW_TAB); + ASSERT_TRUE(window->GetTabCount(&tab_count)); + ASSERT_EQ(2, tab_count); int load_time; ASSERT_TRUE(automation()->WaitForInitialNewTabUILoad(&load_time)); @@ -119,8 +120,9 @@ TEST_F(NewTabUITest, HomePageLink) { ASSERT_EQ(1, tab_count); // Bring up a new tab page. - browser->ApplyAccelerator(IDC_NEW_TAB); - WaitUntilTabCount(2); + browser->RunCommand(IDC_NEW_TAB); + ASSERT_TRUE(browser->GetTabCount(&tab_count)); + ASSERT_EQ(2, tab_count); int load_time; ASSERT_TRUE(automation()->WaitForInitialNewTabUILoad(&load_time)); |