Bug 590286 - test-url.testToFilename exception on trunk nightlies; r=myk 0.7rc2
authorAtul Varma [:atul] <avarma@mozilla.com>
Tue, 24 Aug 2010 15:11:56 -0700
changeset 768 9b978d823509de5d52ca222b9907f72591c68c5a
parent 767 bea3473ed4a75cf984782b5de7ff02ce58b6f452
child 769 cd71e1e77c93adf169b9f38184b1f95d423876ba
push id290
push usermyk@mozilla.com
push dateTue, 24 Aug 2010 22:12:05 +0000
reviewersmyk
bugs590286
Bug 590286 - test-url.testToFilename exception on trunk nightlies; r=myk
packages/jetpack-core/tests/test-url.js
--- a/packages/jetpack-core/tests/test-url.js
+++ b/packages/jetpack-core/tests/test-url.js
@@ -57,18 +57,18 @@ exports.testParseAbout = function(test) 
 
 exports.testToFilename = function(test) {
   test.assertRaises(
     function() { url.toFilename("resource://nonexistent"); },
     "resource does not exist: resource://nonexistent/",
     "url.toFilename() on nonexistent resources should throw"
   );
 
-  test.assertMatches(url.toFilename("resource://gre/modules/"),
-                     /.*modules$/,
+  test.assertMatches(url.toFilename(__url__),
+                     /.*test-url\.js$/,
                      "url.toFilename() on resource: URIs should work");
 
   test.assertRaises(
     function() { url.toFilename("http://foo.com/"); },
     "cannot map to filename: http://foo.com/",
     "url.toFilename() on http: URIs should raise error"
   );