OLD | NEW |
1 // Copyright (c) 2006-2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2010 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 #include "chrome_frame/test/test_with_web_server.h" | 4 #include "chrome_frame/test/test_with_web_server.h" |
5 | 5 |
6 #include "base/file_version_info.h" | 6 #include "base/file_version_info.h" |
7 #include "chrome/common/chrome_switches.h" | 7 #include "chrome/common/chrome_switches.h" |
8 #include "chrome/installer/util/install_util.h" | 8 #include "chrome/installer/util/install_util.h" |
9 #include "chrome/installer/util/helper.h" | 9 #include "chrome/installer/util/helper.h" |
10 #include "chrome_frame/utils.h" | 10 #include "chrome_frame/utils.h" |
(...skipping 773 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
784 ASSERT_TRUE(LaunchBrowser(IE, kAnchorUrlNavigate)); | 784 ASSERT_TRUE(LaunchBrowser(IE, kAnchorUrlNavigate)); |
785 | 785 |
786 loop.RunFor(kChromeFrameLongNavigationTimeoutInSeconds); | 786 loop.RunFor(kChromeFrameLongNavigationTimeoutInSeconds); |
787 | 787 |
788 chrome_frame_test::CloseAllIEWindows(); | 788 chrome_frame_test::CloseAllIEWindows(); |
789 ASSERT_TRUE(CheckResultFile(L"FullTab_AnchorURLNavigateTest", "OK")); | 789 ASSERT_TRUE(CheckResultFile(L"FullTab_AnchorURLNavigateTest", "OK")); |
790 } | 790 } |
791 | 791 |
792 // Test whether POST-ing a form from an mshtml page to a CF page will cause | 792 // Test whether POST-ing a form from an mshtml page to a CF page will cause |
793 // the request to get reissued. It should not. | 793 // the request to get reissued. It should not. |
794 // http://code.google.com/p/chromium/issues/detail?id=40266 | 794 // http://code.google.com/p/chromium/issues/detail?id=40124 |
795 TEST_F(ChromeFrameTestWithWebServer, DISABLED_FullTabModeIE_TestPostReissue) { | 795 TEST_F(ChromeFrameTestWithWebServer, DISABLED_FullTabModeIE_TestPostReissue) { |
796 if (!MonikerPatchEnabled()) | 796 if (!MonikerPatchEnabled()) |
797 return; | 797 return; |
798 | 798 |
799 MessageLoopForUI loop; // must come before the server. | 799 MessageLoopForUI loop; // must come before the server. |
800 | 800 |
801 // The order of pages in this array is assumed to be mshtml, cf, script. | 801 // The order of pages in this array is assumed to be mshtml, cf, script. |
802 const wchar_t* kPages[] = { | 802 const wchar_t* kPages[] = { |
803 L"full_tab_post_mshtml.html", | 803 L"full_tab_post_mshtml.html", |
804 L"full_tab_post_target_cf.html", | 804 L"full_tab_post_target_cf.html", |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
851 EXPECT_EQ("OK", r.arguments()); | 851 EXPECT_EQ("OK", r.arguments()); |
852 | 852 |
853 if (r.arguments().compare("OK") == 0) { | 853 if (r.arguments().compare("OK") == 0) { |
854 // Check how many requests we got for the cf page and check that it was | 854 // Check how many requests we got for the cf page and check that it was |
855 // a GET. | 855 // a GET. |
856 int requests = server.GetRequestCountForPage(kPages[1], "GET"); | 856 int requests = server.GetRequestCountForPage(kPages[1], "GET"); |
857 EXPECT_EQ(1, requests); | 857 EXPECT_EQ(1, requests); |
858 } | 858 } |
859 } | 859 } |
860 | 860 |
OLD | NEW |