| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #undef LOG | 5 #undef LOG |
| 6 | 6 |
| 7 #include "webkit/tools/test_shell/test_shell.h" | 7 #include "webkit/tools/test_shell/test_shell.h" |
| 8 | 8 |
| 9 #include "app/gfx/codec/png_codec.h" | 9 #include "app/gfx/codec/png_codec.h" |
| 10 #include "base/base_paths.h" | 10 #include "base/base_paths.h" |
| (...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 web_prefs_->text_areas_are_resizable = false; | 457 web_prefs_->text_areas_are_resizable = false; |
| 458 web_prefs_->java_enabled = false; | 458 web_prefs_->java_enabled = false; |
| 459 web_prefs_->allow_scripts_to_close_windows = false; | 459 web_prefs_->allow_scripts_to_close_windows = false; |
| 460 web_prefs_->xss_auditor_enabled = false; | 460 web_prefs_->xss_auditor_enabled = false; |
| 461 // It's off by default for Chrome, but we don't want to | 461 // It's off by default for Chrome, but we don't want to |
| 462 // lose the coverage of dynamic font tests in webkit test. | 462 // lose the coverage of dynamic font tests in webkit test. |
| 463 web_prefs_->remote_fonts_enabled = true; | 463 web_prefs_->remote_fonts_enabled = true; |
| 464 web_prefs_->local_storage_enabled = true; | 464 web_prefs_->local_storage_enabled = true; |
| 465 web_prefs_->application_cache_enabled = true; | 465 web_prefs_->application_cache_enabled = true; |
| 466 web_prefs_->databases_enabled = true; | 466 web_prefs_->databases_enabled = true; |
| 467 web_prefs_->allow_file_access_from_file_urls = true; |
| 467 // LayoutTests were written with Safari Mac in mind which does not allow | 468 // LayoutTests were written with Safari Mac in mind which does not allow |
| 468 // tabbing to links by default. | 469 // tabbing to links by default. |
| 469 web_prefs_->tabs_to_links = false; | 470 web_prefs_->tabs_to_links = false; |
| 470 | 471 |
| 471 // Allow those layout tests running as local files, i.e. under | 472 // Allow those layout tests running as local files, i.e. under |
| 472 // LayoutTests/http/tests/local, to access http server. | 473 // LayoutTests/http/tests/local, to access http server. |
| 473 if (layout_test_mode_) | 474 if (layout_test_mode_) |
| 474 web_prefs_->allow_universal_access_from_file_urls = true; | 475 web_prefs_->allow_universal_access_from_file_urls = true; |
| 475 } | 476 } |
| 476 } | 477 } |
| (...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 769 | 770 |
| 770 void CloseCurrentConnections() { | 771 void CloseCurrentConnections() { |
| 771 // Used in benchmarking, Ignored for test_shell. | 772 // Used in benchmarking, Ignored for test_shell. |
| 772 } | 773 } |
| 773 | 774 |
| 774 void SetCacheMode(bool enabled) { | 775 void SetCacheMode(bool enabled) { |
| 775 // Used in benchmarking, Ignored for test_shell. | 776 // Used in benchmarking, Ignored for test_shell. |
| 776 } | 777 } |
| 777 | 778 |
| 778 } // namespace webkit_glue | 779 } // namespace webkit_glue |
| OLD | NEW |