summaryrefslogtreecommitdiffstats
path: root/webkit/tools/test_shell/test_shell_mac.mm
diff options
context:
space:
mode:
authordpranke@google.com <dpranke@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-29 06:51:34 +0000
committerdpranke@google.com <dpranke@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-29 06:51:34 +0000
commit365f605965cc2570ad17f10e98f64d4936d6fc44 (patch)
tree51dbc8e70e7dbdf7963f2d36051c8af8b580335c /webkit/tools/test_shell/test_shell_mac.mm
parent6536c99fc129175331b21855f20c089c0cda44d6 (diff)
downloadchromium_src-365f605965cc2570ad17f10e98f64d4936d6fc44.zip
chromium_src-365f605965cc2570ad17f10e98f64d4936d6fc44.tar.gz
chromium_src-365f605965cc2570ad17f10e98f64d4936d6fc44.tar.bz2
Fix hardcoded path directory for linux and mac builds.
(landing on behalf of kinuko@google.com). This fixes bug 17509 and bug 10371. BUG=17509,10371 R=dpranke@chromium.org TEST=LayoutTests/fast/loader/local-CSS-from-local.html git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30442 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/test_shell_mac.mm')
-rw-r--r--webkit/tools/test_shell/test_shell_mac.mm6
1 files changed, 3 insertions, 3 deletions
diff --git a/webkit/tools/test_shell/test_shell_mac.mm b/webkit/tools/test_shell/test_shell_mac.mm
index fb30636..787d265 100644
--- a/webkit/tools/test_shell/test_shell_mac.mm
+++ b/webkit/tools/test_shell/test_shell_mac.mm
@@ -612,9 +612,9 @@ std::string TestShell::RewriteLocalUrl(const std::string& url) {
std::string new_url(url);
if (url.compare(0, kPrefixLen, kPrefix, kPrefixLen) == 0) {
FilePath replace_path;
- PathService::Get(base::DIR_EXE, &replace_path);
- replace_path = replace_path.DirName().DirName().Append(
- "webkit/data/layout_tests/LayoutTests/");
+ PathService::Get(base::DIR_SOURCE_ROOT, &replace_path);
+ replace_path = replace_path.Append(
+ "third_party/WebKit/LayoutTests/");
new_url = std::string("file://") + replace_path.value() +
url.substr(kPrefixLen);
}