Merge "user: Allow "CAS update failed" exceptions to be normalised"
[lhc/web/wiklou.git] / tests / qunit / suites / resources / mediawiki / mediawiki.jscompat.test.js
index b0b2e7a..207385f 100644 (file)
@@ -2,7 +2,7 @@
  * Some misc JavaScript compatibility tests,
  * just to make sure the environments we run in are consistent.
  */
-( function ( $ ) {
+( function () {
        QUnit.module( 'mediawiki.jscompat', QUnit.newMwEnvironment() );
 
        QUnit.test( 'Variable with Unicode letter in name', function ( assert ) {
@@ -20,7 +20,7 @@
        // Not that we need this. ;)
        // This fails on IE 6-8
        // Works on IE 9, Firefox 6, Chrome 14
-       QUnit.test( 'Keyword workaround: "if" as variable name using Unicode escapes', function ( assert ) {
+       ...( 'Keyword workaround: "if" as variable name using Unicode escapes', function ( assert ) {
                var orig = "another token";
                \u0069\u0066 = orig;
                assert.deepEqual( \u0069\u0066, orig, '\\u0069\\u0066' );
@@ -31,7 +31,7 @@
        // Not that we need this. ;)
        // This fails on IE 6-9
        // Works on Firefox 6, Chrome 14
-       QUnit.test( 'Keyword workaround: "if" as member variable name using Unicode escapes', function ( assert ) {
+       ...( 'Keyword workaround: "if" as member variable name using Unicode escapes', function ( assert ) {
                var orig = "another token";
                var foo = {};
                foo.\u0069\u0066 = orig;
                        expected = repeat( '\n', n ) + 'some text';
 
                        $textarea = $( '<textarea>\n' + expected + '</textarea>' );
-                       assert.equal( $textarea.val(), expected, 'Expecting ' + n + ' newlines (HTML contained ' + ( n + 1 ) + ')' );
+                       assert.strictEqual( $textarea.val(), expected, 'Expecting ' + n + ' newlines (HTML contained ' + ( n + 1 ) + ')' );
 
                        $textarea = $( '<textarea>' ).val( expected );
-                       assert.equal( $textarea.val(), expected, 'Expecting ' + n + ' newlines (from DOM set with ' + n + ')' );
+                       assert.strictEqual( $textarea.val(), expected, 'Expecting ' + n + ' newlines (from DOM set with ' + n + ')' );
                }
        } );
-}( jQuery ) );
+}() );