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

Unified 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/common/test_runner/WebPreferences.cpp
diff --git a/content/shell/common/test_runner/WebPreferences.cpp b/content/shell/common/test_runner/WebPreferences.cpp
new file mode 100644
index 0000000000000000000000000000000000000000..a8952e38fb8a29b26be3403204d92bc18c16e2b3
--- /dev/null
+++ b/content/shell/common/test_runner/WebPreferences.cpp
@@ -0,0 +1,51 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/shell/common/test_runner/WebPreferences.h"
+
+using namespace blink;
+
+namespace WebTestRunner {
+
+void WebPreferences::reset()
+{
+ defaultFontSize = 16;
+ minimumFontSize = 0;
+ DOMPasteAllowed = true;
+ XSSAuditorEnabled = false;
+ allowDisplayOfInsecureContent = true;
+ allowFileAccessFromFileURLs = true;
+ allowRunningOfInsecureContent = true;
+ defaultTextEncodingName = WebString::fromUTF8("ISO-8859-1");
+ experimentalWebGLEnabled = false;
+ experimentalCSSRegionsEnabled = true;
+ experimentalCSSGridLayoutEnabled = true;
+ javaEnabled = false;
+ javaScriptCanAccessClipboard = true;
+ javaScriptCanOpenWindowsAutomatically = true;
+ supportsMultipleWindows = true;
+ javaScriptEnabled = true;
+ loadsImagesAutomatically = true;
+ offlineWebApplicationCacheEnabled = true;
+ pluginsEnabled = true;
+ caretBrowsingEnabled = false;
+
+ // Allow those layout tests running as local files, i.e. under
+ // LayoutTests/http/tests/local, to access http server.
+ allowUniversalAccessFromFileURLs = true;
+
+#ifdef __APPLE__
+ editingBehavior = WebSettings::EditingBehaviorMac;
+#else
+ editingBehavior = WebSettings::EditingBehaviorWin;
+#endif
+
+ tabsToLinks = false;
+ hyperlinkAuditingEnabled = false;
+ cssCustomFilterEnabled = false;
+ shouldRespectImageOrientation = false;
+ asynchronousSpellCheckingEnabled = false;
+}
+
+}
« 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