Support: Simplify the box-sizing test

Don't require body in the support.boxSizing test.
This commit is contained in:
Michał Gołębiowski
2014-03-04 23:49:09 +01:00
parent 4a6d1631ea
commit b5050dc489
4 changed files with 8 additions and 40 deletions

View File

@@ -1,19 +0,0 @@
<!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>

View File

@@ -45,11 +45,6 @@ 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, computedSupport.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" );