summaryrefslogtreecommitdiffstats
path: root/chrome/test/tab_switching
diff options
context:
space:
mode:
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-10 19:30:46 +0000
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-10 19:30:46 +0000
commit95d050e357cd2f2a226621dd8639baaf30cad544 (patch)
treea44275da340d48f19a8898c80ac841800ec55141 /chrome/test/tab_switching
parent697b87dd539e18cf21d5e65a7e55919f615e394c (diff)
downloadchromium_src-95d050e357cd2f2a226621dd8639baaf30cad544.zip
chromium_src-95d050e357cd2f2a226621dd8639baaf30cad544.tar.gz
chromium_src-95d050e357cd2f2a226621dd8639baaf30cad544.tar.bz2
Hack to make tests work if out is a symlink: see if the current dir is the source root.
Fix some tests that were manually getting sourcedir from DIR_EXE instead of using DIR_SOURCE_ROOT. BUG=none TEST=rm -r out, ln -s /somedir/out out, run tests Review URL: http://codereview.chromium.org/192064 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25898 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/tab_switching')
-rw-r--r--chrome/test/tab_switching/tab_switching_test.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/chrome/test/tab_switching/tab_switching_test.cc b/chrome/test/tab_switching/tab_switching_test.cc
index 234b777..1bce9c3 100644
--- a/chrome/test/tab_switching/tab_switching_test.cc
+++ b/chrome/test/tab_switching/tab_switching_test.cc
@@ -29,9 +29,7 @@ namespace {
class TabSwitchingUITest : public UITest {
public:
TabSwitchingUITest() {
- PathService::Get(base::DIR_EXE, &path_prefix_);
- path_prefix_ = path_prefix_.DirName();
- path_prefix_ = path_prefix_.DirName();
+ PathService::Get(base::DIR_SOURCE_ROOT, &path_prefix_);
path_prefix_ = path_prefix_.AppendASCII("data");
path_prefix_ = path_prefix_.AppendASCII("tab_switching");