Karma hangs when file paths have \u in them #924

Closed
MrP opened this Issue Feb 12, 2014 · 1 comment

2 participants

@MrP

Trying to include any file whose path contains \u in it, like windows paths, will make the browser complain about a Syntax error or a bad ID. That's because javascript gets confused expecting a Unicode character (e.g. \u0040).

I've given it a shot at fixing it with #923, which makes it work in my machine.

I've seen this issue using the Google Closure library, for the file
.....\useragent\useragent.js

Thanks,
Victor

@davidlinse

I've not seen a solution like this for path related issues so far, so I'd guess that the problem is somewhere else under the hood.

@MrP MrP added a commit to MrP/karma that referenced this issue Feb 24, 2014
@MrP MrP Update karma.js
fix(runner): Karma hangs when file paths have \u in them #924

Escape backslashes in paths (which happen in Windows)
to prevent bad IDs (e.g. aaa\uuuu).

Closes #924
44cc361
@MrP MrP added a commit to MrP/karma that referenced this issue Feb 24, 2014
@MrP MrP Update karma.spec.coffee
test(runner): Tests issue #924, backslashes in paths
69e8fa6
@MrP MrP added a commit to MrP/karma that referenced this issue Feb 24, 2014
@MrP MrP fix(runner): Karma hangs when file paths have \u in them #924
Escape backslashes in paths, which happen in Windows,
to prevent bad IDs (e.g. aaa\uuuu).
Add unit test with path with backslashes.

Closes #924
1199fc4
@vojtajina vojtajina closed this in #932 Mar 8, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment