OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 #include "components/test_runner/test_preferences.h" | 5 #include "components/test_runner/test_preferences.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 using blink::WebSettings; | 9 using blink::WebSettings; |
10 using blink::WebString; | 10 using blink::WebString; |
11 | 11 |
12 namespace test_runner { | 12 namespace test_runner { |
13 | 13 |
14 TestPreferences::TestPreferences() { Reset(); } | 14 TestPreferences::TestPreferences() { Reset(); } |
15 | 15 |
16 void TestPreferences::Reset() { | 16 void TestPreferences::Reset() { |
17 default_font_size = 16; | 17 default_font_size = 16; |
18 minimum_font_size = 0; | 18 minimum_font_size = 0; |
19 dom_paste_allowed = true; | 19 dom_paste_allowed = true; |
20 xss_auditor_enabled = false; | 20 xss_auditor_enabled = false; |
21 allow_display_of_insecure_content = true; | 21 allow_display_of_insecure_content = true; |
22 allow_file_access_from_file_urls = true; | 22 allow_file_access_from_file_urls = true; |
23 allow_running_of_insecure_content = true; | 23 allow_running_of_insecure_content = true; |
24 default_text_encoding_name = WebString::fromUTF8("ISO-8859-1"); | 24 default_text_encoding_name = WebString::fromUTF8("ISO-8859-1"); |
25 experimental_webgl_enabled = false; | 25 experimental_webgl_enabled = false; |
26 experimental_css_regions_enabled = true; | 26 experimental_css_regions_enabled = true; |
27 experimental_css_grid_layout_enabled = true; | 27 experimental_css_grid_layout_enabled = true; |
28 java_enabled = false; | |
29 java_script_can_access_clipboard = true; | 28 java_script_can_access_clipboard = true; |
30 java_script_can_open_windows_automatically = true; | 29 java_script_can_open_windows_automatically = true; |
31 supports_multiple_windows = true; | 30 supports_multiple_windows = true; |
32 java_script_enabled = true; | 31 java_script_enabled = true; |
33 loads_images_automatically = true; | 32 loads_images_automatically = true; |
34 offline_web_application_cache_enabled = true; | 33 offline_web_application_cache_enabled = true; |
35 plugins_enabled = true; | 34 plugins_enabled = true; |
36 caret_browsing_enabled = false; | 35 caret_browsing_enabled = false; |
37 | 36 |
38 // Allow those layout tests running as local files, i.e. under | 37 // Allow those layout tests running as local files, i.e. under |
(...skipping 10 matching lines...) Expand all Loading... |
49 hyperlink_auditing_enabled = false; | 48 hyperlink_auditing_enabled = false; |
50 should_respect_image_orientation = false; | 49 should_respect_image_orientation = false; |
51 asynchronous_spell_checking_enabled = false; | 50 asynchronous_spell_checking_enabled = false; |
52 web_security_enabled = true; | 51 web_security_enabled = true; |
53 disable_reading_from_canvas = false; | 52 disable_reading_from_canvas = false; |
54 strict_mixed_content_checking = false; | 53 strict_mixed_content_checking = false; |
55 strict_powerful_feature_restrictions = false; | 54 strict_powerful_feature_restrictions = false; |
56 } | 55 } |
57 | 56 |
58 } // namespace test_runner | 57 } // namespace test_runner |
OLD | NEW |