diff options
author | cpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-09 17:49:40 +0000 |
---|---|---|
committer | cpu@chromium.org <cpu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-09 17:49:40 +0000 |
commit | 68b4ee2af94c17215aeb201f4088e6357598ea3d (patch) | |
tree | 3875b6a0abdaebb65e13704f77c221511653943f /webkit | |
parent | 5e235f9394c890c0af2afb0932346e2543c3c66f (diff) | |
download | chromium_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.mm | 2 |
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(); |