Syntax new in ES5 not supported in older browsers using ES3.
* Trailing comma's in object and array literals.
* References to properties with protected names.
Disabled for some test files.
Change-Id: I24a0d1677f887097065fab874fea15f3855a4f34
// Enforcing
"eqeqeq": true,
+ "es3": true,
"latedef": true,
"noarg": true,
"nonew": true,
[ tail, 8 ],
[ tail, 19 ],
[ tail - 8, 8 ],
- [ tail, 8 ],
+ [ tail, 8 ]
] ) );
g.appendChild( node );
trigger: 'manual',
title: function () {
return profile.buildFlyout( $( this ).data( 'period' ) ).html();
- },
+ }
} ).on( 'mouseenter', function () {
hide();
addClass( this, 'tipsy-visible' );
*/
xCoord: function ( msTimestamp ) {
return ( msTimestamp - profile.data.timespan.start ) * profile.ratio;
- },
+ }
};
function ProfileData( data, width, mergeThresholdPx, dropThresholdPx ) {
return Object.keys( groups ).map( function ( group ) {
return {
name: group,
- events: groups[group],
+ events: groups[group]
};
} );
};
return [{
start: period.start,
end: period.end,
- contained: [period],
+ contained: [period]
}];
}
var last = result[result.length - 1];
result.push({
start: period.start,
end: period.end,
- contained: [period],
+ contained: [period]
});
}
return result;
* @param {Array} nodes List of nodes
* @return {string} Other message
*/
- int: function ( nodes ) {
+ 'int': function ( nodes ) {
return mw.jqueryMsg.getMessageFunction()( nodes[0].toLowerCase() );
},
setrelative = window.setrelative = function ( nodes ) {
var i = 0;
while ( i < nodes.length ) {
- if ( ( ( nodes[i].style.float && nodes[i].style.float !== ( 'none' ) ||
+ if ( ( ( nodes[i].style['float'] && nodes[i].style['float'] !== ( 'none' ) ||
( nodes[i].align && nodes[i].align !== ( 'none' ) ) ) &&
( !nodes[i].style.position || nodes[i].style.position !== 'relative' ) ) )
{
+/*jshint -W024 */
( function ( mw, $ ) {
// mw.Title relies on these three config vars
// Restore them after each test run
+/*jshint -W024 */
( function ( mw, $ ) {
QUnit.module( 'mediawiki.Uri', QUnit.newMwEnvironment( {
setup: function () {
+/*jshint -W024 */
( function ( mw, $ ) {
var specialCharactersPageName;
'Mozilla/5.0 (Series40; NokiaX3-02/05.60; Profile/MIDP-2.1 Configuration/CLDC-1.1) Gecko/20100401 S40OviBrowser/3.2.0.0.6',
'Mozilla/5.0 (Series40; Nokia305/05.92; Profile/MIDP-2.1 Configuration/CLDC-1.1) Gecko/20100401 S40OviBrowser/3.7.0.0.11',
// Google Glass
- 'Mozilla/5.0 (Linux; U; Android 4.0.4; en-us; Glass 1 Build/IMM76L; XE11) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30',
+ 'Mozilla/5.0 (Linux; U; Android 4.0.4; en-us; Glass 1 Build/IMM76L; XE11) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30'
],
// No explicit support for or against these browsers, they're
// given a shot at Grade A at their own risk.