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

Side by Side Diff: webkit/tools/test_shell/test_shell.cc

Issue 212004: Implement WebKitTabToLinksPreferenceKey for the test_shell.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months 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
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-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 "base/base_paths.h" 9 #include "base/base_paths.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 web_prefs_->text_areas_are_resizable = false; 416 web_prefs_->text_areas_are_resizable = false;
417 web_prefs_->java_enabled = true; 417 web_prefs_->java_enabled = true;
418 web_prefs_->allow_scripts_to_close_windows = false; 418 web_prefs_->allow_scripts_to_close_windows = false;
419 web_prefs_->xss_auditor_enabled = false; 419 web_prefs_->xss_auditor_enabled = false;
420 // It's off by default for Chrome, but we don't want to 420 // It's off by default for Chrome, but we don't want to
421 // lose the coverage of dynamic font tests in webkit test. 421 // lose the coverage of dynamic font tests in webkit test.
422 web_prefs_->remote_fonts_enabled = true; 422 web_prefs_->remote_fonts_enabled = true;
423 web_prefs_->local_storage_enabled = true; 423 web_prefs_->local_storage_enabled = true;
424 web_prefs_->session_storage_enabled = true; 424 web_prefs_->session_storage_enabled = true;
425 web_prefs_->application_cache_enabled = false; 425 web_prefs_->application_cache_enabled = false;
426 // LayoutTests were written with Safari Mac in mind which does not allow
427 // tabbing to links by default.
428 web_prefs_->tabs_to_links = false;
426 429
427 // Allow those layout tests running as local files, i.e. under 430 // Allow those layout tests running as local files, i.e. under
428 // LayoutTests/http/tests/local, to access http server. 431 // LayoutTests/http/tests/local, to access http server.
429 if (layout_test_mode_) 432 if (layout_test_mode_)
430 web_prefs_->allow_universal_access_from_file_urls = true; 433 web_prefs_->allow_universal_access_from_file_urls = true;
431 } 434 }
432 } 435 }
433 436
434 // static 437 // static
435 bool TestShell::RemoveWindowFromList(gfx::NativeWindow window) { 438 bool TestShell::RemoveWindowFromList(gfx::NativeWindow window) {
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 678
676 void CloseIdleConnections() { 679 void CloseIdleConnections() {
677 // Used in benchmarking, Ignored for test_shell. 680 // Used in benchmarking, Ignored for test_shell.
678 } 681 }
679 682
680 void SetCacheMode(bool enabled) { 683 void SetCacheMode(bool enabled) {
681 // Used in benchmarking, Ignored for test_shell. 684 // Used in benchmarking, Ignored for test_shell.
682 } 685 }
683 686
684 } // namespace webkit_glue 687 } // namespace webkit_glue
OLDNEW
« webkit/glue/webview.h ('K') | « webkit/tools/test_shell/layout_test_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698