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

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

Issue 2915: Add a new switch: --allow-scripts-to-close-windows.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 3 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
« no previous file with comments | « webkit/pending/Settings.cpp ('k') | webkit/tools/test_shell/test_shell.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // Writes the back-forward list data for every open window into result. 185 // Writes the back-forward list data for every open window into result.
186 static void DumpBackForwardList(std::wstring* result); 186 static void DumpBackForwardList(std::wstring* result);
187 187
188 // Writes the image captured from the given web frame to the given file. 188 // Writes the image captured from the given web frame to the given file.
189 // The returned string is the ASCII-ized MD5 sum of the image. 189 // The returned string is the ASCII-ized MD5 sum of the image.
190 static std::string DumpImage(WebFrame* web_frame, 190 static std::string DumpImage(WebFrame* web_frame,
191 const std::wstring& file_name); 191 const std::wstring& file_name);
192 192
193 static void ResetWebPreferences(); 193 static void ResetWebPreferences();
194 194
195 static void SetAllowScriptsToCloseWindows();
196
195 WebPreferences* GetWebPreferences() { return web_prefs_; } 197 WebPreferences* GetWebPreferences() { return web_prefs_; }
196 198
197 // Some layout tests hardcode a file:///tmp/LayoutTests URL. We get around 199 // Some layout tests hardcode a file:///tmp/LayoutTests URL. We get around
198 // this by substituting "tmp" with the path to the LayoutTests parent dir. 200 // this by substituting "tmp" with the path to the LayoutTests parent dir.
199 static std::string RewriteLocalUrl(const std::string& url); 201 static std::string RewriteLocalUrl(const std::string& url);
200 202
201 // Set the timeout for running a test. 203 // Set the timeout for running a test.
202 static void SetFileTestTimeout(int timeout_ms) { 204 static void SetFileTestTimeout(int timeout_ms) {
203 file_test_timeout_ms_ = timeout_ms; 205 file_test_timeout_ms_ = timeout_ms;
204 } 206 }
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 #if defined(OS_WIN) 288 #if defined(OS_WIN)
287 // Used by the watchdog to know when it's finished. 289 // Used by the watchdog to know when it's finished.
288 HANDLE finished_event_; 290 HANDLE finished_event_;
289 #endif 291 #endif
290 292
291 // Dump the stats table counters on exit. 293 // Dump the stats table counters on exit.
292 bool dump_stats_table_on_exit_; 294 bool dump_stats_table_on_exit_;
293 }; 295 };
294 296
295 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_ 297 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_H_
OLDNEW
« no previous file with comments | « webkit/pending/Settings.cpp ('k') | webkit/tools/test_shell/test_shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698