From b531284945332066027a35bf95de1acb54efd8c6 Mon Sep 17 00:00:00 2001 From: "ojan@google.com" Date: Fri, 17 Apr 2009 00:51:40 +0000 Subject: Only dump image results if the hashes don't match. We spend a lot of time doing PNG encoding now for passing tests. There's more work to be done for the --run-singly case still. This seems to save another ~2minutes on Windows Release. Review URL: http://codereview.chromium.org/79035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13911 0039d316-1c4b-4281-b951-d872f2087c98 --- webkit/tools/test_shell/test_shell.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'webkit/tools/test_shell/test_shell.h') diff --git a/webkit/tools/test_shell/test_shell.h b/webkit/tools/test_shell/test_shell.h index 11c8daf..c5806c3 100644 --- a/webkit/tools/test_shell/test_shell.h +++ b/webkit/tools/test_shell/test_shell.h @@ -64,6 +64,8 @@ public: // Filename we dump pixels to (when pixel testing is enabled). std::wstring pixel_file_name; + // The md5 hash of the bitmap dump (when pixel testing is enabled). + std::string pixel_hash; // URL of the test. std::string test_url; }; @@ -201,7 +203,8 @@ public: // Writes the image captured from the given web frame to the given file. // The returned string is the ASCII-ized MD5 sum of the image. static std::string DumpImage(WebFrame* web_frame, - const std::wstring& file_name); + const std::wstring& file_name, + const std::string& pixel_hash); static void ResetWebPreferences(); -- cgit v1.1