From 296cada7369c8064d34974e2138abf8755f48852 Mon Sep 17 00:00:00 2001 From: Thomas Fuchs Date: Tue, 27 Mar 2007 18:31:25 +0000 Subject: [PATCH] Prototype: Make automatic unit testing work smoother on non-english versions of Windows --- CHANGELOG | 2 +- test/lib/jstest.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index e5e71a7..407b883 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -2,7 +2,7 @@ * Fix issues with Selector an+b logic, :not support, attribute selector double quotes, plus performance improvements. Closes #7873, #7901. [Andrew Dupont] -* Fix an issue with Element.getDimensions with some element types on non IE-browsers. Closes #7683. [Andrew Dupont] +* Fix an issue with Element.getDimensions with some element types on non-IE browsers. Closes #7683. [Andrew Dupont] * Fix Form.disable to work again on non-form elements. Closes #6887. [Mislav Marohnić] diff --git a/test/lib/jstest.rb b/test/lib/jstest.rb index 736c82e..4ed06eb 100644 --- a/test/lib/jstest.rb +++ b/test/lib/jstest.rb @@ -32,7 +32,7 @@ class Browser end class FirefoxBrowser < Browser - def initialize(path='c:\Program Files\Mozilla Firefox\firefox.exe') + def initialize(path=File.join(ENV['ProgramFiles'] || 'c:\Program Files', '\Mozilla Firefox\firefox.exe')) @path = path end @@ -70,7 +70,7 @@ class SafariBrowser < Browser end class IEBrowser < Browser - def initialize(path='C:\Program Files\Internet Explorer\IEXPLORE.EXE') + def initialize(path=File.join(ENV['ProgramFiles'] || 'c:\Program Files', '\Internet Explorer\IEXPLORE.EXE')) @path = path end