( function ( $ ) { QUnit.module( 'jquery.mwExtension', QUnit.newMwEnvironment() ); QUnit.test( 'String functions', 7, function ( assert ) { assert.equal( $.trimLeft( ' foo bar ' ), 'foo bar ', 'trimLeft' ); assert.equal( $.trimRight( ' foo bar ' ), ' foo bar', 'trimRight' ); assert.equal( $.ucFirst( 'foo' ), 'Foo', 'ucFirst' ); assert.equal( $.escapeRE( '