OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "v8_proxy.h" | 5 #include "v8_proxy.h" |
6 #undef LOG | 6 #undef LOG |
7 | 7 |
8 #include "webkit/tools/test_shell/test_shell.h" | 8 #include "webkit/tools/test_shell/test_shell.h" |
9 | 9 |
10 #include "base/base_paths.h" | 10 #include "base/base_paths.h" |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 web_prefs_->minimum_font_size = 1; | 389 web_prefs_->minimum_font_size = 1; |
390 web_prefs_->minimum_logical_font_size = 9; | 390 web_prefs_->minimum_logical_font_size = 9; |
391 web_prefs_->javascript_can_open_windows_automatically = true; | 391 web_prefs_->javascript_can_open_windows_automatically = true; |
392 web_prefs_->dom_paste_enabled = true; | 392 web_prefs_->dom_paste_enabled = true; |
393 web_prefs_->developer_extras_enabled = !layout_test_mode_; | 393 web_prefs_->developer_extras_enabled = !layout_test_mode_; |
394 web_prefs_->shrinks_standalone_images_to_fit = false; | 394 web_prefs_->shrinks_standalone_images_to_fit = false; |
395 web_prefs_->uses_universal_detector = false; | 395 web_prefs_->uses_universal_detector = false; |
396 web_prefs_->text_areas_are_resizable = false; | 396 web_prefs_->text_areas_are_resizable = false; |
397 web_prefs_->java_enabled = true; | 397 web_prefs_->java_enabled = true; |
398 web_prefs_->allow_scripts_to_close_windows = false; | 398 web_prefs_->allow_scripts_to_close_windows = false; |
| 399 // It's off by default for Chrome, but we don't want to |
| 400 // lose the coverage of dynamic font tests in webkit test. |
| 401 web_prefs_->remote_fonts_enabled = true; |
399 } | 402 } |
400 } | 403 } |
401 | 404 |
402 // static | 405 // static |
403 bool TestShell::RemoveWindowFromList(gfx::NativeWindow window) { | 406 bool TestShell::RemoveWindowFromList(gfx::NativeWindow window) { |
404 WindowList::iterator entry = | 407 WindowList::iterator entry = |
405 std::find(TestShell::windowList()->begin(), | 408 std::find(TestShell::windowList()->begin(), |
406 TestShell::windowList()->end(), | 409 TestShell::windowList()->end(), |
407 window); | 410 window); |
408 if (entry != TestShell::windowList()->end()) { | 411 if (entry != TestShell::windowList()->end()) { |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 } | 649 } |
647 #endif // OS_WIN | 650 #endif // OS_WIN |
648 return false; | 651 return false; |
649 } | 652 } |
650 | 653 |
651 std::wstring GetWebKitLocale() { | 654 std::wstring GetWebKitLocale() { |
652 return L"en-US"; | 655 return L"en-US"; |
653 } | 656 } |
654 | 657 |
655 } // namespace webkit_glue | 658 } // namespace webkit_glue |
OLD | NEW |