summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorcpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-09 17:49:40 +0000
committercpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-01-09 17:49:40 +0000
commit68b4ee2af94c17215aeb201f4088e6357598ea3d (patch)
tree3875b6a0abdaebb65e13704f77c221511653943f /webkit
parent5e235f9394c890c0af2afb0932346e2543c3c66f (diff)
downloadchromium_src-68b4ee2af94c17215aeb201f4088e6357598ea3d.zip
chromium_src-68b4ee2af94c17215aeb201f4088e6357598ea3d.tar.gz
chromium_src-68b4ee2af94c17215aeb201f4088e6357598ea3d.tar.bz2
Fix webkit tests failing on the bots
Because of relative paths, see https://codereview.chromium.org/11782005/ Has paths like /Volumes/data/b/build/slave/WebKit_Mac10_6/build/src/xcodebuild/Release/DumpRenderTree.app/Contents/MacOS/../Resources/missingImage.png BUG=168890 TEST=webkit tests green Review URL: https://codereview.chromium.org/11817018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@175824 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/support/platform_support_mac.mm2
1 files changed, 2 insertions, 0 deletions
diff --git a/webkit/support/platform_support_mac.mm b/webkit/support/platform_support_mac.mm
index 6b723af..9a758ec 100644
--- a/webkit/support/platform_support_mac.mm
+++ b/webkit/support/platform_support_mac.mm
@@ -226,6 +226,7 @@ base::StringPiece TestWebKitPlatformSupport::GetDataResource(
// use a PNG. The GIF doesn't have the color range needed to correctly
// match the TIFF they use in Safari.
path = path.AppendASCII("missingImage.png");
+ file_util::AbsolutePath(&path);
bool success = file_util::ReadFileToString(path, &broken_image_data);
if (!success) {
LOG(FATAL) << "Failed reading: " << path.value();
@@ -239,6 +240,7 @@ base::StringPiece TestWebKitPlatformSupport::GetDataResource(
if (resize_corner_data.empty()) {
FilePath path = GetResourcesFilePath();
path = path.AppendASCII("textAreaResizeCorner.png");
+ file_util::AbsolutePath(&path);
bool success = file_util::ReadFileToString(path, &resize_corner_data);
if (!success) {
LOG(FATAL) << "Failed reading: " << path.value();