Index: trunk/phase3/CREDITS |
— | — | @@ -122,6 +122,7 @@ |
123 | 123 | * Max Sikström |
124 | 124 | * Michael Dale |
125 | 125 | * Michael De La Rue |
| 126 | +* Michael M. |
126 | 127 | * Michael Walsh |
127 | 128 | * Mike Horvath |
128 | 129 | * Mormegil |
Index: trunk/phase3/tests/qunit/suites/resources/mediawiki/mediawiki.util.js |
— | — | @@ -107,12 +107,15 @@ |
108 | 108 | }); |
109 | 109 | |
110 | 110 | test( 'getParamValue', function() { |
111 | | - expect(2); |
| 111 | + expect(3); |
112 | 112 | |
113 | | - var url = 'http://mediawiki.org/?foo=wrong&foo=right#&foo=bad'; |
| 113 | + var url1 = 'http://mediawiki.org/?foo=wrong&foo=right#&foo=bad'; |
114 | 114 | |
115 | | - equal( mw.util.getParamValue( 'foo', url ), 'right', 'Use latest one, ignore hash' ); |
116 | | - strictEqual( mw.util.getParamValue( 'bar', url ), null, 'Return null when not found' ); |
| 115 | + equal( mw.util.getParamValue( 'foo', url1 ), 'right', 'Use latest one, ignore hash' ); |
| 116 | + strictEqual( mw.util.getParamValue( 'bar', url1 ), null, 'Return null when not found' ); |
| 117 | + |
| 118 | + var url2 = 'http://mediawiki.org/#&foo=bad'; |
| 119 | + strictEqual( mw.util.getParamValue( 'foo', url2 ), null, 'Ignore hash if param is not in querystring but in hash (bug 27427)' ); |
117 | 120 | }); |
118 | 121 | |
119 | 122 | test( 'tooltipAccessKey', function() { |