Commit abd642c1 authored by arv@google.com's avatar arv@google.com

Fix new_tab_ui_cold_test for linux

BUG=None

TEST=None

Review URL: http://codereview.chromium.org/155200

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20127 0039d316-1c4b-4281-b951-d872f2087c98
parent 7d11cee2
...@@ -63,7 +63,15 @@ class NewTabUIStartupTest : public UITest { ...@@ -63,7 +63,15 @@ class NewTabUIStartupTest : public UITest {
// first (the first is about:blank). // first (the first is about:blank).
scoped_refptr<BrowserProxy> window(automation()->GetBrowserWindow(0)); scoped_refptr<BrowserProxy> window(automation()->GetBrowserWindow(0));
ASSERT_TRUE(window.get()); ASSERT_TRUE(window.get());
// We resize the window so that we hit the normal layout of the NTP and
// not the small layout mode.
#if defined(OS_WIN)
// TODO(port): SetBounds returns false when not implemented.
// It is OK to comment out the resize since it will still be useful to test the
// default size of the window.
ASSERT_TRUE(window->GetWindow().get()->SetBounds(gfx::Rect(1000, 1000))); ASSERT_TRUE(window->GetWindow().get()->SetBounds(gfx::Rect(1000, 1000)));
#endif
int tab_count = -1; int tab_count = -1;
ASSERT_TRUE(window->GetTabCount(&tab_count)); ASSERT_TRUE(window->GetTabCount(&tab_count));
ASSERT_EQ(1, tab_count); ASSERT_EQ(1, tab_count);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment