]> source.dussan.org Git - jquery.git/commitdiff
support.boxSizingReliable in FF 23 should be true. Close gh-1288
authorOleg <markelog@gmail.com>
Sun, 2 Jun 2013 21:23:03 +0000 (01:23 +0400)
committerOleg <markelog@gmail.com>
Mon, 1 Jul 2013 18:31:00 +0000 (22:31 +0400)
test/unit/support.js

index 5507bcd97d6ba732756dce7e8ec5dd1ed2e3a071..ded7b46decdf84648b813a1ac132d4f701220004 100644 (file)
@@ -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
                };
        }