summaryrefslogtreecommitdiffstats
path: root/chrome/test
diff options
context:
space:
mode:
authorarv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-08 03:29:37 +0000
committerarv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-08 03:29:37 +0000
commitabd642c12e4e7f4bbfd2ffe4d962d8a8d420b0c7 (patch)
treedcc09db8f8a855ac6feea398488090d778edf376 /chrome/test
parent7d11cee248f8a36b628d982e133eb10195f178ad (diff)
downloadchromium_src-abd642c12e4e7f4bbfd2ffe4d962d8a8d420b0c7.zip
chromium_src-abd642c12e4e7f4bbfd2ffe4d962d8a8d420b0c7.tar.gz
chromium_src-abd642c12e4e7f4bbfd2ffe4d962d8a8d420b0c7.tar.bz2
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
Diffstat (limited to 'chrome/test')
-rw-r--r--chrome/test/startup/feature_startup_test.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/test/startup/feature_startup_test.cc b/chrome/test/startup/feature_startup_test.cc
index 268a1b4..5224c9b 100644
--- a/chrome/test/startup/feature_startup_test.cc
+++ b/chrome/test/startup/feature_startup_test.cc
@@ -63,7 +63,15 @@ class NewTabUIStartupTest : public UITest {
// first (the first is about:blank).
scoped_refptr<BrowserProxy> window(automation()->GetBrowserWindow(0));
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)));
+#endif
int tab_count = -1;
ASSERT_TRUE(window->GetTabCount(&tab_count));
ASSERT_EQ(1, tab_count);