summaryrefslogtreecommitdiffstats
path: root/chrome_frame/test/test_with_web_server.cc
diff options
context:
space:
mode:
authorrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-28 16:32:31 +0000
committerrobertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-28 16:32:31 +0000
commitfd41c656ff9156c55e0407a937349457650516f4 (patch)
treeaef96465b43384d7f832b7c29df33fdc79e33ead /chrome_frame/test/test_with_web_server.cc
parenta1d3c64d9b0a3279139b517d48dbe09787977cc3 (diff)
downloadchromium_src-fd41c656ff9156c55e0407a937349457650516f4.zip
chromium_src-fd41c656ff9156c55e0407a937349457650516f4.tar.gz
chromium_src-fd41c656ff9156c55e0407a937349457650516f4.tar.bz2
Add Chrome Frame test for large page rendering. This is designed to ensure that large pages load correctly in their entirety which should help catch bugs like crbug.com/178421.
Also fix access violation in code used by tests to shut down IE. BUG=178421 TEST=chrome_frame_tests.exe Review URL: https://chromiumcodereview.appspot.com/12310162 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@185260 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame/test/test_with_web_server.cc')
-rw-r--r--chrome_frame/test/test_with_web_server.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/chrome_frame/test/test_with_web_server.cc b/chrome_frame/test/test_with_web_server.cc
index 23dcc64..4f786dc 100644
--- a/chrome_frame/test/test_with_web_server.cc
+++ b/chrome_frame/test/test_with_web_server.cc
@@ -1086,3 +1086,14 @@ TEST_F(ChromeFrameTestWithWebServer, FullTabModeIE_TestDownloadFromForm) {
EXPECT_EQ(1, response->get_request_count());
EXPECT_EQ(1, response->post_request_count());
}
+
+// This test loads a large page and ensures that the full page contents are
+// actually loaded via a self-validating HTML page. This is done due to a bug
+// whereby the middle of the response stream would sometimes be truncated when
+// loading a CF document. See http://crbug.com/178421 for details.
+TEST_F(ChromeFrameTestWithWebServer, FullTabModeIE_LargePageLoad) {
+ const wchar_t kLargePageLoadPage[] =
+ L"chrome_frame_large_page.html";
+
+ SimpleBrowserTest(IE, kLargePageLoadPage);
+}