r88239 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88238‎ | r88239 | r88240 >
Date:14:55, 16 May 2011
Author:neilk
Status:ok
Tags:
Comment:
fixed uri spec to match current behaviour of Uri model
Modified paths:
  • /trunk/extensions/UploadWizard/test/jasmine/spec/mw.Uri.spec.js (modified) (history)

Diff [purge]

Index: trunk/extensions/UploadWizard/test/jasmine/spec/mw.Uri.spec.js
@@ -120,7 +120,7 @@
121121 expect( uri.host ).toEqual( 'www.sample.com' );
122122 expect( uri.port ).toEqual( '81' );
123123 expect( uri.path ).toEqual( '/dir/dir.2/index.htm' );
124 - expect( uri.query ).toEqual( { q1: '0', test1: '', test2: 'value (escaped)' } );
 124+ expect( uri.query ).toEqual( { q1: '0', test1: null, test2: 'value (escaped)' } );
125125 expect( uri.fragment ).toEqual( 'top' );
126126 } );
127127
@@ -140,7 +140,8 @@
141141 it( "should have query string which contains all components", function() {
142142 var queryString = uri.getQueryString();
143143 expect( queryString ).toContain( 'q1=0' );
144 - expect( queryString ).toContain( 'test1=' );
 144+ expect( queryString ).toContain( 'test1' );
 145+ expect( queryString ).not.toContain( 'test1=' );
145146 expect( queryString ).toContain( 'test2=value+%28escaped%29' );
146147 } );
147148

Status & tagging log