From bce5b38cc267be0fd7be45ed0f79f10ecd07be98 Mon Sep 17 00:00:00 2001 From: Laurent Jouanneau Date: Wed, 31 Jul 2013 22:38:51 +0200 Subject: [PATCH] test-webpage-listeners: bad file url on windows the url of the file should be well formed on windows. Refs #65 --- test/test-webpage-listeners.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/test-webpage-listeners.js b/test/test-webpage-listeners.js index 8a9beb0..0d32ded 100644 --- a/test/test-webpage-listeners.js +++ b/test/test-webpage-listeners.js @@ -1,4 +1,5 @@ +var URLUtils = require("sdk/url"); describe("webpage with listeners", function() { var webpage; @@ -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);