jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/371062 )

Change subject: QUnit 2 compatibility fixes
......................................................................


QUnit 2 compatibility fixes

Change-Id: I737fabe4412a20627ca7a8a60da741583c79eeba
---
M tests/qunit/tools/ext.cx.tools.mtabuse.test.js
M tests/qunit/translation/ext.cx.translation.loader.test.js
M tests/qunit/translation/ext.cx.translation.test.js
3 files changed, 7 insertions(+), 4 deletions(-)

Approvals:
  jenkins-bot: Verified
  Santhosh: Looks good to me, approved



diff --git a/tests/qunit/tools/ext.cx.tools.mtabuse.test.js 
b/tests/qunit/tools/ext.cx.tools.mtabuse.test.js
index 0ac4ed5..c4c1c4f 100644
--- a/tests/qunit/tools/ext.cx.tools.mtabuse.test.js
+++ b/tests/qunit/tools/ext.cx.tools.mtabuse.test.js
@@ -10,9 +10,12 @@
 
        QUnit.module( 'ext.cx.tools.mtabuse', QUnit.newMwEnvironment() );
 
-       QUnit.test( 'MT Abuse - isAbuse method tests', 5, function ( assert ) {
+       QUnit.test( 'MT Abuse - isAbuse method tests', function ( assert ) {
                /* eslint new-cap:off */
                var progress, mtAbuseCard = new mw.cx.tools.mtabuse();
+
+               assert.expect( 5 );
+
                progress = {
                        any: 0,
                        human: 0,
diff --git a/tests/qunit/translation/ext.cx.translation.loader.test.js 
b/tests/qunit/translation/ext.cx.translation.loader.test.js
index 9bfd6f6..38df40d 100644
--- a/tests/qunit/translation/ext.cx.translation.loader.test.js
+++ b/tests/qunit/translation/ext.cx.translation.loader.test.js
@@ -46,7 +46,7 @@
 
        QUnit.test( 'Translation daft restore test', function ( assert ) {
                var i;
-               QUnit.expect( tests.length );
+               assert.expect( tests.length );
                // Without old revision flag set true, orphan sections wont get 
added.
                this.translatonLoader.originalRevision = true;
                for ( i = 0; i < tests.length; i++ ) {
diff --git a/tests/qunit/translation/ext.cx.translation.test.js 
b/tests/qunit/translation/ext.cx.translation.test.js
index 296ddcf..0fdeb40 100644
--- a/tests/qunit/translation/ext.cx.translation.test.js
+++ b/tests/qunit/translation/ext.cx.translation.test.js
@@ -10,7 +10,7 @@
 
        QUnit.test( 'isHeading', function ( assert ) {
                var cxTranslation = new mw.cx.ContentTranslationEditor();
-               QUnit.expect( 3 );
+               assert.expect( 3 );
 
                assert.strictEqual( cxTranslation.isHeading( 'H1' ), true );
                assert.strictEqual( cxTranslation.isHeading( 'h6' ), true );
@@ -19,7 +19,7 @@
 
        QUnit.test( 'isParentHeading', function ( assert ) {
                var cxTranslation = new mw.cx.ContentTranslationEditor();
-               QUnit.expect( 6 );
+               assert.expect( 6 );
 
                assert.strictEqual( cxTranslation.isParentHeading( 'H1', 'DIV' 
), true );
                assert.strictEqual( cxTranslation.isParentHeading( 'H2', 'H3' 
), true );

-- 
To view, visit https://gerrit.wikimedia.org/r/371062
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I737fabe4412a20627ca7a8a60da741583c79eeba
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Divec <da...@troi.org>
Gerrit-Reviewer: Santhosh <santhosh.thottin...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to