]> source.dussan.org Git - jquery.git/commitdiff
No ticket. Remove version sniffing from test/unit/support.js, browsers got updated.
authorMichał Gołębiowski <m.goleb@gmail.com>
Sun, 10 Nov 2013 23:43:18 +0000 (00:43 +0100)
committerMichał Gołębiowski <m.goleb@gmail.com>
Sun, 10 Nov 2013 23:43:18 +0000 (00:43 +0100)
test/unit/support.js

index b87299d53c934ac2b2ab90295dc4a07236e49949..24578a058bb7fb19cc3fd09d594ceb7df67dacb7 100644 (file)
@@ -79,11 +79,10 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
 );
 
 (function() {
-       var expected, version,
+       var expected,
                userAgent = window.navigator.userAgent;
 
        if ( /chrome/i.test( userAgent ) ) {
-               version = userAgent.match( /chrome\/(\d+)/i )[ 1 ];
                expected = {
                        "ajax": true,
                        "appendChecked": true,
@@ -111,7 +110,7 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
                        "optDisabled": true,
                        "optSelected": true,
                        "ownLast": false,
-                       "pixelPosition": version >= 28,
+                       "pixelPosition": true,
                        "radioValue": true,
                        "reliableHiddenOffsets": true,
                        "reliableMarginRight": true,
@@ -417,12 +416,11 @@ testIframeWithCallback( "Check CSP (https://developer.mozilla.org/en-US/docs/Sec
                        "tbody": true
                };
        } else if ( /firefox/i.test( userAgent ) ) {
-               version = userAgent.match( /firefox\/(\d+)/i )[ 1 ];
                expected = {
                        "ajax": true,
                        "appendChecked": true,
                        "boxSizing": true,
-                       "boxSizingReliable": version >= 23,
+                       "boxSizingReliable": true,
                        "changeBubbles": true,
                        "checkClone": true,
                        "checkOn": true,