OLD | NEW |
| (Empty) |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "content/shell/common/test_runner/test_preferences.h" | |
6 | |
7 #include "build/build_config.h" | |
8 | |
9 using blink::WebSettings; | |
10 using blink::WebString; | |
11 | |
12 namespace content { | |
13 | |
14 TestPreferences::TestPreferences() { Reset(); } | |
15 | |
16 void TestPreferences::Reset() { | |
17 default_font_size = 16; | |
18 minimum_font_size = 0; | |
19 dom_paste_allowed = true; | |
20 xss_auditor_enabled = false; | |
21 allow_display_of_insecure_content = true; | |
22 allow_file_access_from_file_urls = true; | |
23 allow_running_of_insecure_content = true; | |
24 default_text_encoding_name = WebString::fromUTF8("ISO-8859-1"); | |
25 experimental_webgl_enabled = false; | |
26 experimental_css_regions_enabled = true; | |
27 experimental_css_grid_layout_enabled = true; | |
28 java_enabled = false; | |
29 java_script_can_access_clipboard = true; | |
30 java_script_can_open_windows_automatically = true; | |
31 supports_multiple_windows = true; | |
32 java_script_enabled = true; | |
33 loads_images_automatically = true; | |
34 offline_web_application_cache_enabled = true; | |
35 plugins_enabled = true; | |
36 caret_browsing_enabled = false; | |
37 | |
38 // Allow those layout tests running as local files, i.e. under | |
39 // LayoutTests/http/tests/local, to access http server. | |
40 allow_universal_access_from_file_urls = true; | |
41 | |
42 #if defined(OS_MACOSX) | |
43 editing_behavior = WebSettings::EditingBehaviorMac; | |
44 #else | |
45 editing_behavior = WebSettings::EditingBehaviorWin; | |
46 #endif | |
47 | |
48 tabs_to_links = false; | |
49 hyperlink_auditing_enabled = false; | |
50 should_respect_image_orientation = false; | |
51 asynchronous_spell_checking_enabled = false; | |
52 web_security_enabled = true; | |
53 disable_reading_from_canvas = false; | |
54 strict_mixed_content_checking = false; | |
55 strict_powerful_feature_restrictions = false; | |
56 } | |
57 | |
58 } // namespace content | |
OLD | NEW |