From: Krinkle Date: Sat, 14 May 2011 13:07:12 +0000 (+0000) Subject: Adding a small test to verify that the regex worked. Apparently it's failing in IE8... X-Git-Tag: 1.31.0-rc.0~30207 X-Git-Url: http://git.cyclocoop.org//%22javascript:ModifierStyle%28%27%22.%24id.%22%27%29/%22?a=commitdiff_plain;h=3e5dce2a40b6fbcb9c93a48df1deb7cd850d4ed0;p=lhc%2Fweb%2Fwiklou.git Adding a small test to verify that the regex worked. Apparently it's failing in IE8. Thanks TestSwarm --- diff --git a/resources/test/unit/mediawiki/mediawiki.js b/resources/test/unit/mediawiki/mediawiki.js index a50107b00d..b3e0ecfd19 100644 --- a/resources/test/unit/mediawiki/mediawiki.js +++ b/resources/test/unit/mediawiki/mediawiki.js @@ -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();