Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing filesystem paths in Envjs.uri #23

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

moschel
Copy link

@moschel moschel commented Nov 4, 2010

This pull requests fixes 2 issues and adds a test for both:

  1. If you put in an absolute windows path in any browser, like this: C:\foo\bar\index.html, it will convert it to file:///C:/foo/bar/index.html.

  2. If you have document=null and you try to open a relative path, like this: specs/env/spec.html, Envjs tries to convert this to a file: URL. However, this wasn't working quite right in Windows beacuse getcwd() returns the wrong slash, and file:/// should have 3 slashes, not 2.

  • Brian

@techarch
Copy link

I have tested this patch locally on my Windows dev box and it worked great. This patch is critical if you are planning on running Jasmine and Jasmine-Species in a headless setup (outside the browser). Without it you will not be able to run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants