Skip to content

Commit

Permalink
test-webpage-listeners: bad file url on windows
Browse files Browse the repository at this point in the history
the url of the file should be well formed on windows.

Refs laurentj#65
  • Loading branch information
laurentj committed Jul 31, 2013
1 parent ce31ef0 commit bce5b38
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test-webpage-listeners.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

var URLUtils = require("sdk/url");

describe("webpage with listeners", function() {
var webpage;
Expand Down Expand Up @@ -76,7 +77,7 @@ describe("webpage with listeners", function() {
}

var domain = "http://localhost:8083/";
var file = 'file://'+ phantom.libraryPath + '/www/simplehello.html';
var file = URLUtils.fromFilename(phantom.libraryPath) + '/www/simplehello.html';

var async = new AsyncSpec(this);

Expand Down

0 comments on commit bce5b38

Please sign in to comment.