summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_restore_uitest.cc
diff options
context:
space:
mode:
authorpam@chromium.org <pam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-23 23:11:56 +0000
committerpam@chromium.org <pam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-23 23:11:56 +0000
commitb2225f18acfce00b1a8a9f25a7ad2ef8450bb6a9 (patch)
tree3cc2a7ca211d534a166edd12f13e548089473f6b /chrome/browser/tab_restore_uitest.cc
parente0c7c263ba8720bc8616fc1ed73a1480dc931f6f (diff)
downloadchromium_src-b2225f18acfce00b1a8a9f25a7ad2ef8450bb6a9.zip
chromium_src-b2225f18acfce00b1a8a9f25a7ad2ef8450bb6a9.tar.gz
chromium_src-b2225f18acfce00b1a8a9f25a7ad2ef8450bb6a9.tar.bz2
Re-enable all tests. Disable CheckActiveWindow() instead. The sporadic
failures of window_proxy->IsActive() to complete are problematic, but we should keep other coverage while investigating. TBR=robertshield BUG=10916 TEST=covered by buildbot ui_test Review URL: http://codereview.chromium.org/93094 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14376 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_restore_uitest.cc')
-rw-r--r--chrome/browser/tab_restore_uitest.cc13
1 files changed, 9 insertions, 4 deletions
diff --git a/chrome/browser/tab_restore_uitest.cc b/chrome/browser/tab_restore_uitest.cc
index 6dc4466..506acf6 100644
--- a/chrome/browser/tab_restore_uitest.cc
+++ b/chrome/browser/tab_restore_uitest.cc
@@ -102,6 +102,13 @@ class TabRestoreUITest : public UITest {
// Ensure that the given browser occupies the currently active window.
void CheckActiveWindow(const BrowserProxy* browser) {
+ // This entire check is disabled because even the IsActive() call
+ // sporadically fails to complete successfully. See http://crbug.com/10916.
+ // TODO(pamg): Investigate and re-enable. Also find a way to have the
+ // calling location reported in the gtest error, by inlining this again if
+ // nothing else.
+ return;
+
bool is_active = false;
scoped_ptr<WindowProxy> window_proxy(browser->GetWindow());
ASSERT_TRUE(window_proxy->IsActive(&is_active));
@@ -180,8 +187,7 @@ TEST_F(TabRestoreUITest, MiddleTab) {
// Close a tab, switch windows, then restore the tab. The tab should be in its
// original window and position, and active.
-// Disabled as per: http://crbug.com/10916
-TEST_F(TabRestoreUITest, DISABLED_RestoreToDifferentWindow) {
+TEST_F(TabRestoreUITest, RestoreToDifferentWindow) {
scoped_ptr<BrowserProxy> browser_proxy(automation()->GetBrowserWindow(0));
// This call is virtually guaranteed to pass, assuming that Chromium is the
@@ -276,8 +282,7 @@ TEST_F(TabRestoreUITest, BasicRestoreFromClosedWindow) {
// Open a window with multiple tabs, close a tab, then close the window.
// Restore both and make sure the tab goes back into the window.
-// This test currently disabled. See http://crbug.com/10916
-TEST_F(TabRestoreUITest, DISABLED_RestoreWindowAndTab) {
+TEST_F(TabRestoreUITest, RestoreWindowAndTab) {
scoped_ptr<BrowserProxy> browser_proxy(automation()->GetBrowserWindow(0));
CheckActiveWindow(browser_proxy.get());