X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fqunit%2Fsuites%2Fresources%2Fmediawiki%2Fmediawiki.jscompat.test.js;h=207385fc0ee4aeaa007a8242ad5600e746de5b97;hp=b0b2e7a8517c262c1c536889585836a541505360;hb=6f3d5a5204770b7e9076ec0c956631c32a9e1114;hpb=87f0f708484630a1e59f5f61ea67e1c667e7fd3b
diff --git a/tests/qunit/suites/resources/mediawiki/mediawiki.jscompat.test.js b/tests/qunit/suites/resources/mediawiki/mediawiki.jscompat.test.js
index b0b2e7a851..207385fc0e 100644
--- a/tests/qunit/suites/resources/mediawiki/mediawiki.jscompat.test.js
+++ b/tests/qunit/suites/resources/mediawiki/mediawiki.jscompat.test.js
@@ -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;
@@ -60,10 +60,10 @@
expected = repeat( '\n', n ) + 'some text';
$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 = $( '