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 "components/test_runner/test_preferences.h" | |
6 | |
7 #include "build/build_config.h" | |
8 | |
9 using blink::WebSettings; | |
10 using blink::WebString; | |
11 | |
12 namespace test_runner { | |
13 | |
14 TestPreferences::TestPreferences() { Reset(); } | |
15 | |
16 void TestPreferences::Reset() { | |
17 default_font_size = 16; | |
18 minimum_font_size = 0; | |
19 xss_auditor_enabled = false; | |
20 allow_file_access_from_file_urls = true; | |
21 allow_running_of_insecure_content = true; | |
22 default_text_encoding_name = WebString::fromUTF8("ISO-8859-1"); | |
23 experimental_webgl_enabled = false; | |
24 experimental_css_grid_layout_enabled = true; | |
25 java_script_can_access_clipboard = true; | |
26 java_script_can_open_windows_automatically = true; | |
27 supports_multiple_windows = true; | |
28 java_script_enabled = true; | |
29 loads_images_automatically = true; | |
30 plugins_enabled = true; | |
31 caret_browsing_enabled = false; | |
32 | |
33 // Allow those layout tests running as local files, i.e. under | |
34 // LayoutTests/http/tests/local, to access http server. | |
35 allow_universal_access_from_file_urls = true; | |
36 | |
37 #if defined(OS_MACOSX) | |
38 editing_behavior = WebSettings::EditingBehaviorMac; | |
39 #else | |
40 editing_behavior = WebSettings::EditingBehaviorWin; | |
41 #endif | |
42 | |
43 tabs_to_links = false; | |
44 hyperlink_auditing_enabled = false; | |
45 should_respect_image_orientation = false; | |
46 asynchronous_spell_checking_enabled = false; | |
47 web_security_enabled = true; | |
48 disable_reading_from_canvas = false; | |
49 strict_mixed_content_checking = false; | |
50 strict_powerful_feature_restrictions = false; | |
51 spatial_navigation_enabled = false; | |
52 } | |
53 | |
54 } // namespace test_runner | |
OLD | NEW |