galenframework / galen

Layout and functional testing framework for websites
http://galenframework.com
1.41k stars 163 forks source link

Using relative paths with load() #162

Open erquhart opened 9 years ago

erquhart commented 9 years ago

I'm trying to determine how relative paths would work with .load(), for instance:

load('../../../galen/init.js');

produces the following:

c:\path-to-folder-where-test-command-was-executed\.\path-where-test-file-was-found\../../../galen/init.js
ishubin commented 9 years ago

Hm... ok. I see the problem. It is because you use Windows. We could create a separator conversion based on the operating system. Will pick it up

hypery2k commented 9 years ago

i've tested my changes with Windows and OS X