Merge "parserTests: Use a mock parser during article insertion"
[lhc/web/wiklou.git] / resources / src / mediawiki / mediawiki.experiments.js
index 75b1f80..49ff411 100644 (file)
@@ -7,14 +7,14 @@
        /**
         * An implementation of Jenkins' one-at-a-time hash.
         *
-        * @see http://en.wikipedia.org/wiki/Jenkins_hash_function
+        * @see https://en.wikipedia.org/wiki/Jenkins_hash_function
         *
-        * @param {String} string String to hash
-        * @return {Number} The hash as a 32-bit unsigned integer
+        * @param {string} string String to hash
+        * @return {number} The hash as a 32-bit unsigned integer
         * @ignore
         *
         * @author Ori Livneh <ori@wikimedia.org>
-        * @see http://jsbin.com/kejewi/4/watch?js,console
+        * @see https://jsbin.com/kejewi/4/watch?js,console
         */
        function hashString( string ) {
                var hash = 0,
                 * This function is based on the deprecated `mw.user.bucket` function.
                 *
                 * @param {Object} experiment
-                * @param {String} experiment.name The name of the experiment
-                * @param {Boolean} experiment.enabled Whether or not the experiment is
+                * @param {string} experiment.name The name of the experiment
+                * @param {boolean} experiment.enabled Whether or not the experiment is
                 *  enabled. If the experiment is disabled, then the user is always assigned
                 *  to the control bucket
                 * @param {Object} experiment.buckets A map of bucket name to probability
                 *  that the user will be assigned to that bucket
-                * @param {String} token A token that uniquely identifies the user for the
+                * @param {string} token A token that uniquely identifies the user for the
                 *  duration of the experiment
-                * @returns {String} The bucket
+                * @return {string} The bucket
                 */
                getBucket: function ( experiment, token ) {
                        var buckets = experiment.buckets,