X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=tests%2Fqunit%2Fdata%2FgenerateJqueryMsgData.php;h=e4f87f81c78bae0d25d80215b66690baa4f65207;hb=14df990822ffe16ad114308cf63038a3f44c152a;hp=5a96dc33567f2d5902c16bcad3e7094d311a17ce;hpb=687e779b97c059e55f423f97c2bb45e0512c1e77;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/qunit/data/generateJqueryMsgData.php b/tests/qunit/data/generateJqueryMsgData.php index 5a96dc3356..e4f87f81c7 100644 --- a/tests/qunit/data/generateJqueryMsgData.php +++ b/tests/qunit/data/generateJqueryMsgData.php @@ -16,12 +16,12 @@ /* * @example QUnit * - QUnit.test( 'Output matches PHP parser', mw.libs.phpParserData.tests.length, function ( assert ) { + QUnit.test( 'Output matches PHP parser', function ( assert ) { mw.messages.set( mw.libs.phpParserData.messages ); $.each( mw.libs.phpParserData.tests, function ( i, test ) { QUnit.stop(); getMwLanguage( test.lang, function ( langClass ) { - var parser = new mw.jqueryMsg.parser( { language: langClass } ); + var parser = new mw.jqueryMsg.Parser( { language: langClass } ); assert.equal( parser.parse( test.key, test.args ).html(), test.result, @@ -50,7 +50,7 @@ }, 'Language class should be loaded', 1000 ); runs( function () { console.log( test.lang, 'running tests' ); - var parser = new mw.jqueryMsg.parser( { language: langClass } ); + var parser = new mw.jqueryMsg.Parser( { language: langClass } ); expect( parser.parse( test.key, test.args ).html() ).toEqual( test.result ); @@ -133,7 +133,7 @@ class GenerateJqueryMsgData extends Maintenance { . "// languages, and parser modes. Intended for use by a unit test framework by looping\n" . "// through the object and comparing its parser return value with the 'result' property.\n" . '// Last generated with ' . basename( __FILE__ ) . ' at ' . gmdate( 'r' ) . "\n" - . "//jscs:disable\n" + . "/* eslint-disable */\n" . "\n" . 'mediaWiki.libs.phpParserData = ' . FormatJson::encode( $phpParserData, true ) . ";\n";