summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormaruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-13 15:18:54 +0000
committermaruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-13 15:18:54 +0000
commit71c1b664099d8eb1cbac9a9e925b4ee3fa1b2c75 (patch)
tree54fb2855bac008bbb1041633e0288e6f726c4b99
parent01380a96d4796ae49d4d2b14ef7815500be63d76 (diff)
downloadchromium_src-71c1b664099d8eb1cbac9a9e925b4ee3fa1b2c75.zip
chromium_src-71c1b664099d8eb1cbac9a9e925b4ee3fa1b2c75.tar.gz
chromium_src-71c1b664099d8eb1cbac9a9e925b4ee3fa1b2c75.tar.bz2
Enable back SavePageTest.SaveHTMLOnly since it was mostly failing on Windows 2000
and add debugging information to know how SavePageTest.SaveCompleteHTML is failing. TBR=rocking git-svn-id: svn://svn.chromium.org/chrome/trunk/src@801 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/save_page_uitest.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/save_page_uitest.cc b/chrome/browser/save_page_uitest.cc
index 2cd8c6a..1e93228 100644
--- a/chrome/browser/save_page_uitest.cc
+++ b/chrome/browser/save_page_uitest.cc
@@ -63,6 +63,11 @@ class SavePageTest : public UITest {
server_file_name += L"\\" + kTestDir + L"\\" + server_file;
ASSERT_TRUE(file_util::PathExists(server_file_name));
+ int64 client_file_size = 0;
+ int64 server_file_size = 0;
+ EXPECT_TRUE(file_util::GetFileSize(client_file, &client_file_size));
+ EXPECT_TRUE(file_util::GetFileSize(server_file_name, &server_file_size));
+ EXPECT_EQ(client_file_size, server_file_size);
EXPECT_PRED2(file_util::ContentsEqual, client_file, server_file_name);
}
@@ -78,8 +83,7 @@ class SavePageTest : public UITest {
std::wstring save_dir_;
};
-// bug 1306067
-TEST_F(SavePageTest, DISABLED_SaveHTMLOnly) {
+TEST_F(SavePageTest, SaveHTMLOnly) {
std::wstring file_name = L"a.htm";
std::wstring full_file_name = save_dir_ + file_name;
std::wstring dir = save_dir_ + L"a_files";