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

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

Issue 201048: Support running tests under LayoutTests/http/tests/local as local file, in or... (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
427 // Allow those layout tests running as local files, i.e. under
428 // LayoutTests/http/tests/local, to access http server.
429 web_prefs_->allow_universal_access_from_file_urls = true;
darin (slow to review) 2009/09/11 03:41:48 it seems like this should only be set to true when
426 } 430 }
427 } 431 }
428 432
429 // static 433 // static
430 bool TestShell::RemoveWindowFromList(gfx::NativeWindow window) { 434 bool TestShell::RemoveWindowFromList(gfx::NativeWindow window) {
431 WindowList::iterator entry = 435 WindowList::iterator entry =
432 std::find(TestShell::windowList()->begin(), 436 std::find(TestShell::windowList()->begin(),
433 TestShell::windowList()->end(), 437 TestShell::windowList()->end(),
434 window); 438 window);
435 if (entry != TestShell::windowList()->end()) { 439 if (entry != TestShell::windowList()->end()) {
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 682
679 void CloseIdleConnections() { 683 void CloseIdleConnections() {
680 // Used in benchmarking, Ignored for test_shell. 684 // Used in benchmarking, Ignored for test_shell.
681 } 685 }
682 686
683 void SetCacheMode(bool enabled) { 687 void SetCacheMode(bool enabled) {
684 // Used in benchmarking, Ignored for test_shell. 688 // Used in benchmarking, Ignored for test_shell.
685 } 689 }
686 690
687 } // namespace webkit_glue 691 } // namespace webkit_glue
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698