Index: trunk/phase3/tests/jasmine/spec/mediawiki.Uri.spec.js |
— | — | @@ -240,35 +240,34 @@ |
241 | 241 | |
242 | 242 | it( "should throw error on no arguments to constructor", function() { |
243 | 243 | expect( function() { |
244 | | - uri = new mw.Uri(); |
| 244 | + var uri = new mw.Uri(); |
245 | 245 | } ).toThrow( "Bad constructor arguments" ); |
246 | 246 | } ); |
247 | 247 | |
248 | 248 | it( "should throw error on empty string as argument to constructor", function() { |
249 | 249 | expect( function() { |
250 | | - uri = new mw.Uri( '' ); |
| 250 | + var uri = new mw.Uri( '' ); |
251 | 251 | } ).toThrow( "Bad constructor arguments" ); |
252 | 252 | } ); |
253 | 253 | |
254 | 254 | it( "should throw error on non-URI as argument to constructor", function() { |
255 | 255 | expect( function() { |
256 | | - uri = new mw.Uri( 'glaswegian penguins' ); |
| 256 | + var uri = new mw.Uri( 'glaswegian penguins' ); |
257 | 257 | } ).toThrow( "Bad constructor arguments" ); |
258 | 258 | } ); |
259 | 259 | |
260 | 260 | it( "should throw error on improper URI as argument to constructor", function() { |
261 | 261 | expect( function() { |
262 | | - uri = new mw.Uri( 'http:/foo.com' ); |
| 262 | + var uri = new mw.Uri( 'http:/foo.com' ); |
263 | 263 | } ).toThrow( "Bad constructor arguments" ); |
264 | 264 | } ); |
265 | 265 | |
266 | 266 | it( "should throw error on URI without protocol as argument to constructor", function() { |
267 | 267 | expect( function() { |
268 | | - uri = new mw.Uri( 'foo.com/bar/baz' ); |
| 268 | + var uri = new mw.Uri( 'foo.com/bar/baz' ); |
269 | 269 | } ).toThrow( "Bad constructor arguments" ); |
270 | 270 | } ); |
271 | 271 | |
272 | | - |
273 | 272 | } ); |
274 | 273 | |
275 | 274 | } )(); |