OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <string> | 5 #include <string> |
6 | 6 |
7 #include "base/test/test_file_util.h" | 7 #include "base/test/test_file_util.h" |
8 #include "base/win/scoped_comptr.h" | 8 #include "base/win/scoped_comptr.h" |
9 #include "base/win/windows_version.h" | 9 #include "base/win/windows_version.h" |
10 #include "chrome_frame/test/chrome_frame_test_utils.h" | 10 #include "chrome_frame/test/chrome_frame_test_utils.h" |
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1044 // See bug http://code.google.com/p/chromium/issues/detail?id=64901 | 1044 // See bug http://code.google.com/p/chromium/issues/detail?id=64901 |
1045 // This test does the following:- | 1045 // This test does the following:- |
1046 // Navigates IE to a non ChromeFrame URL. | 1046 // Navigates IE to a non ChromeFrame URL. |
1047 // Performs a top level form post in the document | 1047 // Performs a top level form post in the document |
1048 // In response to the POST send over a html document containing a meta tag | 1048 // In response to the POST send over a html document containing a meta tag |
1049 // This would cause IE to switch to ChromeFrame. | 1049 // This would cause IE to switch to ChromeFrame. |
1050 // Refresh the page in ChromeFrame. | 1050 // Refresh the page in ChromeFrame. |
1051 // This should bring up a confirmation dialog which we hit yes on. This should | 1051 // This should bring up a confirmation dialog which we hit yes on. This should |
1052 // reissue the top level post request in response to which the html content | 1052 // reissue the top level post request in response to which the html content |
1053 // containing the meta tag is sent again. | 1053 // containing the meta tag is sent again. |
1054 TEST_F(FullTabDownloadTest, TopLevelPostReissueFromChromeFramePage) { | 1054 // This test has been disabled due to bug |
| 1055 // http://code.google.com/p/chromium/issues/detail?id=94362 |
| 1056 TEST_F(FullTabDownloadTest, DISABLED_TopLevelPostReissueFromChromeFramePage) { |
1055 chrome_frame_test::MockWindowObserver post_reissue_watcher; | 1057 chrome_frame_test::MockWindowObserver post_reissue_watcher; |
1056 post_reissue_watcher.WatchWindow("Confirm Form Resubmission", ""); | 1058 post_reissue_watcher.WatchWindow("Confirm Form Resubmission", ""); |
1057 | 1059 |
1058 EXPECT_CALL(server_mock_, Get(_, StrEq(L"/post_source.html"), _)) | 1060 EXPECT_CALL(server_mock_, Get(_, StrEq(L"/post_source.html"), _)) |
1059 .WillOnce(SendFast( | 1061 .WillOnce(SendFast( |
1060 "HTTP/1.1 200 OK\r\n" | 1062 "HTTP/1.1 200 OK\r\n" |
1061 "Content-Type: text/html\r\n", | 1063 "Content-Type: text/html\r\n", |
1062 "<html>" | 1064 "<html>" |
1063 "<head>" | 1065 "<head>" |
1064 " <script type=\"text/javascript\">" | 1066 " <script type=\"text/javascript\">" |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1264 &no_referrer_target_opener_window_mock)); | 1266 &no_referrer_target_opener_window_mock)); |
1265 | 1267 |
1266 EXPECT_CALL(no_referrer_target_opener_window_mock, OnQuit()) | 1268 EXPECT_CALL(no_referrer_target_opener_window_mock, OnQuit()) |
1267 .WillOnce(CloseBrowserMock(&ie_mock_)); | 1269 .WillOnce(CloseBrowserMock(&ie_mock_)); |
1268 | 1270 |
1269 LaunchIENavigateAndLoop(initial_url, | 1271 LaunchIENavigateAndLoop(initial_url, |
1270 kChromeFrameVeryLongNavigationTimeoutInSeconds); | 1272 kChromeFrameVeryLongNavigationTimeoutInSeconds); |
1271 } | 1273 } |
1272 | 1274 |
1273 } // namespace chrome_frame_test | 1275 } // namespace chrome_frame_test |
OLD | NEW |