Prototype: Make automatic unit testing work smoother on non-english versions of Windows

This commit is contained in:
Thomas Fuchs 2007-03-27 18:31:25 +00:00
parent 4506db2df2
commit 296cada736
2 changed files with 3 additions and 3 deletions

View File

@ -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ć]

View File

@ -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