diff options
author | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-23 14:45:41 +0000 |
---|---|---|
committer | ananta@chromium.org <ananta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-23 14:45:41 +0000 |
commit | 27ebf26a77cd8e69c7216331ad690d9bed06c720 (patch) | |
tree | 5f778af3907a3efb3c9f8a807e178fe6b67c47d0 /chrome_frame | |
parent | 4aa53da34c50a5ea291b90ca0387b71053f573a5 (diff) | |
download | chromium_src-27ebf26a77cd8e69c7216331ad690d9bed06c720.zip chromium_src-27ebf26a77cd8e69c7216331ad690d9bed06c720.tar.gz chromium_src-27ebf26a77cd8e69c7216331ad690d9bed06c720.tar.bz2 |
Hopefully the last of the ChromeFrame window open test failures. The DocumentComplete event at times is fired twice by all
IE versions for new windows. Updated the expectations to account for this.
TBR=stoyan
Review URL: http://codereview.chromium.org/2802017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50593 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame')
-rw-r--r-- | chrome_frame/test/no_interference_test.cc | 40 |
1 files changed, 13 insertions, 27 deletions
diff --git a/chrome_frame/test/no_interference_test.cc b/chrome_frame/test/no_interference_test.cc index d02ecdb..99bcc27 100644 --- a/chrome_frame/test/no_interference_test.cc +++ b/chrome_frame/test/no_interference_test.cc @@ -166,17 +166,11 @@ TEST_F(NoInterferenceTest, FLAKY_JavascriptWindowOpen) { empty_page_url())), DelayCloseBrowserMock(&loop_, 2000, &new_window_mock))); - if (chrome_frame_test::GetInstalledIEVersion() != IE_6) { - // On IE7/8 the DocumentComplete at times fires twice for new windows. Hack - // to account for that. - EXPECT_CALL(new_window_mock, - OnIELoad(testing::StrCaseEq(empty_page_url()))) - .Times(testing::AtMost(2)); - } else { - EXPECT_CALL(new_window_mock, - OnIELoad(testing::StrCaseEq(empty_page_url()))) - .Times(1); - } + // The DocumentComplete at times fires twice for new windows. Hack to account + // for that. + EXPECT_CALL(new_window_mock, + OnIELoad(testing::StrCaseEq(empty_page_url()))) + .Times(testing::AtMost(2)); EXPECT_CALL(new_window_mock, OnQuit()) .WillOnce(DelayCloseBrowserMock(&loop_, 2000, &mock_)); @@ -258,22 +252,14 @@ TEST_F(NoInterferenceTest, FLAKY_SelectContextMenuOpenInNewWindow) { SelectItem(&loop_, 1500, open_new_window_index))); mock_.ExpectNewWindowWithIE(empty_page_url(), &new_window_mock); - if (chrome_frame_test::GetInstalledIEVersion() != IE_6) { - // On IE6/7 the DocumentComplete at times fires twice for new windows. Hack - // to account for that. - // TODO(kkania): Verifying the address bar is flaky with this, at least - // on XP ie6. Fix. - EXPECT_CALL(new_window_mock, - OnIELoad(testing::StrCaseEq(empty_page_url()))) - .Times(testing::AtMost(2)) - .WillOnce(DelayCloseBrowserMock(&loop_, 2000, &new_window_mock)); - } else { - // TODO(kkania): Verifying the address bar is flaky with this, at least - // on XP ie6. Fix. - EXPECT_CALL(new_window_mock, - OnIELoad(testing::StrCaseEq(empty_page_url()))) - .WillOnce(DelayCloseBrowserMock(&loop_, 2000, &new_window_mock)); - } + // The DocumentComplete at times fires twice for new windows. Hack to account + // for that. + // TODO(kkania): Verifying the address bar is flaky with this, at least + // on XP ie6. Fix. + EXPECT_CALL(new_window_mock, + OnIELoad(testing::StrCaseEq(empty_page_url()))) + .Times(testing::AtMost(2)) + .WillOnce(DelayCloseBrowserMock(&loop_, 2000, &new_window_mock)); EXPECT_CALL(new_window_mock, OnQuit()).WillOnce(CloseBrowserMock(&mock_)); |