-/*global isCompatible: true */
+/* global isCompatible: true */
( function ( $ ) {
var testcases = {
tested: [
// MeeGo
'Mozilla/5.0 (MeeGo; NokiaN9) AppleWebKit/534.13 (KHTML, like Gecko) NokiaBrowser/8.5.0 Mobile Safari/534.13',
// UC Mini (speed mode on)
- 'Mozilla/5.0 (X11; U; Linux i686; zh-CN; r:1.2.3.4) Gecko/'
+ 'Mozilla/5.0 (X11; U; Linux i686; zh-CN; r:1.2.3.4) Gecko/',
+ // Google Web Light proxy
+ 'Mozilla/5.0 (Linux; Android 4.2.1; en-us; Nexus 5 Build/JOP40D) AppleWebKit/535.19 (KHTML, like Gecko; googleweblight) Chrome/38.0.1025.166 Mobile Safari/535.19'
]
};
QUnit.module( 'startup', QUnit.newMwEnvironment() );
- QUnit.test( 'isCompatible( featureTestable )', testcases.tested.length, function ( assert ) {
+ QUnit.test( 'isCompatible( featureTestable )', function ( assert ) {
$.each( testcases.tested, function ( i, ua ) {
- assert.strictEqual( isCompatible( ua ), true, ua );
- }
- );
+ assert.strictEqual( isCompatible( ua ), true, ua );
+ } );
} );
- QUnit.test( 'isCompatible( blacklisted )', testcases.blacklisted.length, function ( assert ) {
+ QUnit.test( 'isCompatible( blacklisted )', function ( assert ) {
$.each( testcases.blacklisted, function ( i, ua ) {
- assert.strictEqual( isCompatible( ua ), false, ua );
- }
- );
+ assert.strictEqual( isCompatible( ua ), false, ua );
+ } );
} );
}( jQuery ) );