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

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

Issue 442010: Plumb through site-specific quirks setting with a command line switch. (Closed)
Patch Set: Added flag to test_shell. Created 11 years 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
« no previous file with comments | « webkit/glue/webpreferences.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #undef LOG 5 #undef LOG
6 6
7 #include "webkit/tools/test_shell/test_shell.h" 7 #include "webkit/tools/test_shell/test_shell.h"
8 8
9 #include "app/gfx/codec/png_codec.h" 9 #include "app/gfx/codec/png_codec.h"
10 #include "base/base_paths.h" 10 #include "base/base_paths.h"
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 web_prefs_->sans_serif_font_family = L"Helvetica"; 424 web_prefs_->sans_serif_font_family = L"Helvetica";
425 425
426 web_prefs_->default_encoding = "ISO-8859-1"; 426 web_prefs_->default_encoding = "ISO-8859-1";
427 web_prefs_->default_font_size = 16; 427 web_prefs_->default_font_size = 16;
428 web_prefs_->default_fixed_font_size = 13; 428 web_prefs_->default_fixed_font_size = 13;
429 web_prefs_->minimum_font_size = 1; 429 web_prefs_->minimum_font_size = 1;
430 web_prefs_->minimum_logical_font_size = 9; 430 web_prefs_->minimum_logical_font_size = 9;
431 web_prefs_->javascript_can_open_windows_automatically = true; 431 web_prefs_->javascript_can_open_windows_automatically = true;
432 web_prefs_->dom_paste_enabled = true; 432 web_prefs_->dom_paste_enabled = true;
433 web_prefs_->developer_extras_enabled = !layout_test_mode_; 433 web_prefs_->developer_extras_enabled = !layout_test_mode_;
434 web_prefs_->site_specific_quirks_enabled = true;
434 web_prefs_->shrinks_standalone_images_to_fit = false; 435 web_prefs_->shrinks_standalone_images_to_fit = false;
435 web_prefs_->uses_universal_detector = false; 436 web_prefs_->uses_universal_detector = false;
436 web_prefs_->text_areas_are_resizable = false; 437 web_prefs_->text_areas_are_resizable = false;
437 web_prefs_->java_enabled = false; 438 web_prefs_->java_enabled = false;
438 web_prefs_->allow_scripts_to_close_windows = false; 439 web_prefs_->allow_scripts_to_close_windows = false;
439 web_prefs_->xss_auditor_enabled = false; 440 web_prefs_->xss_auditor_enabled = false;
440 // It's off by default for Chrome, but we don't want to 441 // It's off by default for Chrome, but we don't want to
441 // lose the coverage of dynamic font tests in webkit test. 442 // lose the coverage of dynamic font tests in webkit test.
442 web_prefs_->remote_fonts_enabled = true; 443 web_prefs_->remote_fonts_enabled = true;
443 web_prefs_->local_storage_enabled = true; 444 web_prefs_->local_storage_enabled = true;
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 718
718 void CloseIdleConnections() { 719 void CloseIdleConnections() {
719 // Used in benchmarking, Ignored for test_shell. 720 // Used in benchmarking, Ignored for test_shell.
720 } 721 }
721 722
722 void SetCacheMode(bool enabled) { 723 void SetCacheMode(bool enabled) {
723 // Used in benchmarking, Ignored for test_shell. 724 // Used in benchmarking, Ignored for test_shell.
724 } 725 }
725 726
726 } // namespace webkit_glue 727 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/webpreferences.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698