Use unique image for lofi testing
[chromium-blink-merge.git] / components / test_runner / test_preferences.cc
blobe4c0ca6a14b161023d3d68b2a4cb58112b2873c0
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.
5 #include "components/test_runner/test_preferences.h"
7 #include "build/build_config.h"
9 using blink::WebSettings;
10 using blink::WebString;
12 namespace test_runner {
14 TestPreferences::TestPreferences() { Reset(); }
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;
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;
42 #if defined(OS_MACOSX)
43 editing_behavior = WebSettings::EditingBehaviorMac;
44 #else
45 editing_behavior = WebSettings::EditingBehaviorWin;
46 #endif
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;
58 } // namespace test_runner