]> source.dussan.org Git - jquery.git/commitdiff
"pixelPosition" should be "true" in 28 >= Chrome
authorOleg <markelog@gmail.com>
Sun, 4 Aug 2013 23:06:51 +0000 (03:06 +0400)
committerOleg <markelog@gmail.com>
Wed, 7 Aug 2013 21:18:01 +0000 (01:18 +0400)
test/unit/support.js

index ded7b46decdf84648b813a1ac132d4f701220004..51d0abd6d3022c7b3ad42f6517cce42b3171dea5 100644 (file)
@@ -33,6 +33,7 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo
                userAgent = window.navigator.userAgent;
 
        if ( /chrome/i.test( userAgent ) ) {
+               version = userAgent.match( /chrome\/(\d+)/i )[ 1 ];
                expected = {
                        "checkOn":true,
                        "optSelected":true,
@@ -47,7 +48,7 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo
                        "clearCloneStyle": true,
                        "boxSizing": true,
                        "boxSizingReliable": true,
-                       "pixelPosition": false
+                       "pixelPosition": version >= 28
                };
        } else if ( /opera.*version\/12\.1/i.test( userAgent ) ) {
                expected = {