diff options
author | Oleg <markelog@gmail.com> | 2013-06-03 01:23:03 +0400 |
---|---|---|
committer | Oleg <markelog@gmail.com> | 2013-07-01 22:31:00 +0400 |
commit | 16115c1d9117cd0c22504d7b52f0f91e18c0d8df (patch) | |
tree | 55e9ecb986fefdf6beb4bea25369d871daa480a5 | |
parent | d57c22ce1e87d10ba09272c557b2a968f0a16078 (diff) | |
download | jquery-16115c1d9117cd0c22504d7b52f0f91e18c0d8df.tar.gz jquery-16115c1d9117cd0c22504d7b52f0f91e18c0d8df.zip |
support.boxSizingReliable in FF 23 should be true. Close gh-1288
-rw-r--r-- | test/unit/support.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/unit/support.js b/test/unit/support.js index 5507bcd97..ded7b46de 100644 --- a/test/unit/support.js +++ b/test/unit/support.js @@ -29,7 +29,7 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo }); (function() { - var expected, + var expected, version, userAgent = window.navigator.userAgent; if ( /chrome/i.test( userAgent ) ) { @@ -118,6 +118,7 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo "pixelPosition": false }; } else if ( /firefox/i.test( userAgent ) ) { + version = userAgent.match( /firefox\/(\d+)/i )[ 1 ]; expected = { "checkOn":true, "optSelected":true, @@ -131,7 +132,7 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo "cors":true, "clearCloneStyle": true, "boxSizing": true, - "boxSizingReliable": false, + "boxSizingReliable": version >= 23, "pixelPosition": true }; } |