From: Oleg Date: Sun, 4 Aug 2013 23:06:51 +0000 (+0400) Subject: "pixelPosition" should be "true" in 28 >= Chrome X-Git-Tag: 2.1.0-beta1~97 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e253c65b2dbcc376e8ef96c0b9197ec1f68103e4;p=jquery.git "pixelPosition" should be "true" in 28 >= Chrome --- diff --git a/test/unit/support.js b/test/unit/support.js index ded7b46de..51d0abd6d 100644 --- a/test/unit/support.js +++ b/test/unit/support.js @@ -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 = {