Skip to content

Commit 67962a9

Browse files
committed
Update test suite to work on Windows
1 parent 3757553 commit 67962a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

testsrc/org/mozilla/javascript/tests/commonjs/module/ComplianceTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ private static Require createRequire(File dir, Context cx, Scriptable scope)
7676
throws URISyntaxException
7777
{
7878
return new Require(cx, scope, new StrongCachingModuleScriptProvider(
79-
new UrlModuleSourceProvider(Collections.singleton(new URI(
80-
"file:" + dir.getAbsolutePath().replace(File.separatorChar,'/') + "/")),
79+
new UrlModuleSourceProvider(
80+
Collections.singleton(dir.getAbsoluteFile().toURI()),
8181
Collections.singleton(new URI(ComplianceTest.class.getResource(".").toExternalForm() + "/")))),
8282
null, null, false);
8383
}

0 commit comments

Comments
 (0)