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

Side by Side Diff: content/shell/common/test_runner/WebPreferences.cpp

Issue 110533009: Import TestRunner library into chromium. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright 2013 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/WebPreferences.h"
6
7 using namespace blink;
8
9 namespace WebTestRunner {
10
11 void WebPreferences::reset()
12 {
13 defaultFontSize = 16;
14 minimumFontSize = 0;
15 DOMPasteAllowed = true;
16 XSSAuditorEnabled = false;
17 allowDisplayOfInsecureContent = true;
18 allowFileAccessFromFileURLs = true;
19 allowRunningOfInsecureContent = true;
20 defaultTextEncodingName = WebString::fromUTF8("ISO-8859-1");
21 experimentalWebGLEnabled = false;
22 experimentalCSSRegionsEnabled = true;
23 experimentalCSSGridLayoutEnabled = true;
24 javaEnabled = false;
25 javaScriptCanAccessClipboard = true;
26 javaScriptCanOpenWindowsAutomatically = true;
27 supportsMultipleWindows = true;
28 javaScriptEnabled = true;
29 loadsImagesAutomatically = true;
30 offlineWebApplicationCacheEnabled = true;
31 pluginsEnabled = true;
32 caretBrowsingEnabled = false;
33
34 // Allow those layout tests running as local files, i.e. under
35 // LayoutTests/http/tests/local, to access http server.
36 allowUniversalAccessFromFileURLs = true;
37
38 #ifdef __APPLE__
39 editingBehavior = WebSettings::EditingBehaviorMac;
40 #else
41 editingBehavior = WebSettings::EditingBehaviorWin;
42 #endif
43
44 tabsToLinks = false;
45 hyperlinkAuditingEnabled = false;
46 cssCustomFilterEnabled = false;
47 shouldRespectImageOrientation = false;
48 asynchronousSpellCheckingEnabled = false;
49 }
50
51 }
OLDNEW
« no previous file with comments | « content/shell/common/test_runner/WebPreferences.h ('k') | content/shell/common/webkit_test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698