diff options
author | pinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-12 14:33:54 +0000 |
---|---|---|
committer | pinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-12 14:33:54 +0000 |
commit | 170ab4a8f224abffa7fbeef190fada5316ed5be9 (patch) | |
tree | f7fabbce26129895ebf308107e6b1d668b9c449c /webkit/tools/test_shell/test_shell.cc | |
parent | 54ced96f736e3634beb134b4a1cadc22da44b9f4 (diff) | |
download | chromium_src-170ab4a8f224abffa7fbeef190fada5316ed5be9.zip chromium_src-170ab4a8f224abffa7fbeef190fada5316ed5be9.tar.gz chromium_src-170ab4a8f224abffa7fbeef190fada5316ed5be9.tar.bz2 |
Remove shared code from test_shell_mac, build test_shell_cc. Add a missing file to the net project. Fix leaks on exit where TestShell object was never getting cleaned up.
Review URL: http://codereview.chromium.org/10602
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5256 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/test_shell.cc')
-rw-r--r-- | webkit/tools/test_shell/test_shell.cc | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/webkit/tools/test_shell/test_shell.cc b/webkit/tools/test_shell/test_shell.cc index 02e7df5..e173f84 100644 --- a/webkit/tools/test_shell/test_shell.cc +++ b/webkit/tools/test_shell/test_shell.cc @@ -32,7 +32,11 @@ #include "webkit/tools/test_shell/simple_resource_loader_bridge.h" #include "webkit/tools/test_shell/test_navigation_controller.h" +#if defined(OS_MACOSX) +#include "webkit/glue/bogus_webkit_strings.h" +#elif defined(OS_WIN) || defined(OS_LINUX) #include "webkit_strings.h" +#endif #include "SkBitmap.h" @@ -208,8 +212,13 @@ void TestShell::ResetWebPreferences() { // They (especially Impact for fantasy) are not typical cursive // and fantasy fonts, but it should not matter for layout tests // as long as they're available. +#if defined(OS_MACOSX) + web_prefs_->cursive_font_family = L"Apple Chancery"; + web_prefs_->fantasy_font_family = L"Papyrus"; +#else web_prefs_->cursive_font_family = L"Comic Sans MS"; web_prefs_->fantasy_font_family = L"Impact"; +#endif web_prefs_->default_encoding = L"ISO-8859-1"; web_prefs_->default_font_size = 16; web_prefs_->default_fixed_font_size = 13; @@ -410,7 +419,7 @@ std::string GetDataResource(int resource_id) { } } -SkBitmap* GetBitmapResource(int resource_id) { +GlueBitmap GetBitmapResource(int resource_id) { return NULL; } |