Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: webkit/tools/test_shell/test_shell.h

Issue 21192: Add support for the "repaint" layout tests (LayoutTests/fast/repaint/*), whic... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // because no windows are open. 202 // because no windows are open.
203 static bool RunFileTest(const TestParams& params); 203 static bool RunFileTest(const TestParams& params);
204 204
205 // Writes the back-forward list data for every open window into result. 205 // Writes the back-forward list data for every open window into result.
206 static void DumpBackForwardList(std::wstring* result); 206 static void DumpBackForwardList(std::wstring* result);
207 207
208 // Dumps the output from given test as text and/or image depending on 208 // Dumps the output from given test as text and/or image depending on
209 // the flags set. 209 // the flags set.
210 static void Dump(TestShell* shell); 210 static void Dump(TestShell* shell);
211 211
212 // Writes the image captured from the given web frame to the given file. 212 // Writes the image captured from the given web view to the given file.
213 // The returned string is the ASCII-ized MD5 sum of the image. 213 // The returned string is the ASCII-ized MD5 sum of the image.
214 static std::string DumpImage(WebFrame* web_frame, 214 static std::string DumpImage(WebViewHost* web_view_host,
215 const std::wstring& file_name); 215 const std::wstring& file_name);
216 216
217 static void ResetWebPreferences(); 217 static void ResetWebPreferences();
218 218
219 static void SetAllowScriptsToCloseWindows(); 219 static void SetAllowScriptsToCloseWindows();
220 220
221 WebPreferences* GetWebPreferences() { return web_prefs_; } 221 WebPreferences* GetWebPreferences() { return web_prefs_; }
222 222
223 // Some layout tests hardcode a file:///tmp/LayoutTests URL. We get around 223 // Some layout tests hardcode a file:///tmp/LayoutTests URL. We get around
224 // this by substituting "tmp" with the path to the LayoutTests parent dir. 224 // this by substituting "tmp" with the path to the LayoutTests parent dir.
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 // Dump the stats table counters on exit. 346 // Dump the stats table counters on exit.
347 bool dump_stats_table_on_exit_; 347 bool dump_stats_table_on_exit_;
348 348
349 #if defined(OS_LINUX) 349 #if defined(OS_LINUX)
350 // The height of the non-rendering area of the main window, in pixels. 350 // The height of the non-rendering area of the main window, in pixels.
351 int top_chrome_height_; 351 int top_chrome_height_;
352 #endif 352 #endif
353 }; 353 };
354 354
355 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ 355 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698