Merge "build: Enable jscs jsDoc rule 'requireReturnTypes' and make pass"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 7 Sep 2015 17:24:06 +0000 (17:24 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 7 Sep 2015 17:24:06 +0000 (17:24 +0000)
1  2 
resources/src/mediawiki/mediawiki.util.js
tests/qunit/suites/resources/mediawiki/mediawiki.jqueryMsg.test.js

@@@ -78,7 -78,6 +78,7 @@@
                                .replace( /%24/g, '$' )
                                .replace( /%21/g, '!' )
                                .replace( /%2A/g, '*' )
 +                              .replace( /%27/g, '\'' )
                                .replace( /%28/g, '(' )
                                .replace( /%29/g, ')' )
                                .replace( /%2C/g, ',' )
                 *
                 * @since 1.18
                 * @param str string Name of script (eg. 'api'), defaults to 'index'
-                * @return string Address to script (eg. '/w/api.php' )
+                * @return {string} Address to script (eg. '/w/api.php' )
                 */
                wikiScript: function ( str ) {
                        str = str || 'index';
@@@ -95,7 -95,6 +95,6 @@@
         * @param {Function[]} tasks List of functions that perform tasks
         *  that may be asynchronous. Invoke the callback parameter when done.
         * @param {Function} complete Called when all tasks are done, or when the sequence is aborted.
-        * @return
         */
        function process( tasks, complete ) {
                /*jshint latedef:false */
                        'Bar in anchor'
                );
  
 -              expectedSpecialCharacters = '<a title="&quot;Who&quot; wants to be a millionaire &amp; live on &#039;Exotic Island&#039;?" href="/wiki/%22Who%22_wants_to_be_a_millionaire_%26_live_on_%27Exotic_Island%27%3F">&quot;Who&quot; wants to be a millionaire &amp; live on &#039;Exotic Island&#039;?</a>';
 +              expectedSpecialCharacters = '<a title="&quot;Who&quot; wants to be a millionaire &amp; live on &#039;Exotic Island&#039;?" href="/wiki/%22Who%22_wants_to_be_a_millionaire_%26_live_on_&#039;Exotic_Island&#039;%3F">&quot;Who&quot; wants to be a millionaire &amp; live on &#039;Exotic Island&#039;?</a>';
  
                mw.messages.set( 'special-characters', '[[' + specialCharactersPageName + ']]' );
                assert.htmlEqual(