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; |
+} |
+ |
+} |