diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2013-03-04 05:20:25 +0100 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2013-04-03 21:00:38 -0400 |
commit | 8db7d6f20b4226994e88d1cd9243743c492773f5 (patch) | |
tree | cd105375c138f6830062188c50bf2a942e736e19 /test | |
parent | 1205103a72db407bfbc0de3d9b78f1fd6a02520c (diff) | |
download | jquery-8db7d6f20b4226994e88d1cd9243743c492773f5.tar.gz jquery-8db7d6f20b4226994e88d1cd9243743c492773f5.zip |
Fix #13543. offsetWidth is wrong on non-1 zoom. Close gh-1194.
Diffstat (limited to 'test')
-rw-r--r-- | test/data/support/boxSizing.html | 19 | ||||
-rw-r--r-- | test/unit/support.js | 5 |
2 files changed, 24 insertions, 0 deletions
diff --git a/test/data/support/boxSizing.html b/test/data/support/boxSizing.html new file mode 100644 index 000000000..2da883dc6 --- /dev/null +++ b/test/data/support/boxSizing.html @@ -0,0 +1,19 @@ +<!DOCTYPE html> +<html> +<head> + <meta charset="utf-8"> + <style> + body { + zoom: 0.87; + } + </style> +</head> +<body> +<script src="../../jquery.js"></script> +<script> + jQuery(function() { + window.parent.iframeCallback( jQuery.support.boxSizing ); + }); +</script> +</body> +</html> diff --git a/test/unit/support.js b/test/unit/support.js index 83a50f446..4754a68c9 100644 --- a/test/unit/support.js +++ b/test/unit/support.js @@ -19,6 +19,11 @@ if ( jQuery.css ) { }); } +testIframeWithCallback( "A non-1 zoom on body doesn't cause WebKit to fail box-sizing test", "support/boxSizing.html", function( boxSizing ) { + expect( 1 ); + equal( boxSizing, jQuery.support.boxSizing, "box-sizing properly detected on page with non-1 body zoom" ); +}); + testIframeWithCallback( "A background on the testElement does not cause IE8 to crash (#9823)", "support/testElementCrash.html", function() { expect( 1 ); ok( true, "IE8 does not crash" ); |