Adding a small test to verify that the regex worked. Apparently it's failing in IE8...
authorKrinkle <krinkle@users.mediawiki.org>
Sat, 14 May 2011 13:07:12 +0000 (13:07 +0000)
committerKrinkle <krinkle@users.mediawiki.org>
Sat, 14 May 2011 13:07:12 +0000 (13:07 +0000)
resources/test/unit/mediawiki/mediawiki.js

index a50107b..b3e0ecf 100644 (file)
@@ -128,7 +128,9 @@ test( 'mw.user', function(){
 });
 
 test( 'mw.loader', function(){
-       expect(1);
+       expect(2);
+       
+       ok( location.href.match(/[^#\?]*/) && location.href.match(/[^#\?]*/)[0], true, 'Extracting file path from location' );
 
        stop();