From 35784a824456bf87bbe2fadad2717ad4f4000d14 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Go=C5=82e=CC=A8biowski?= Date: Sun, 7 Apr 2013 14:42:42 +0200 Subject: [PATCH] Fix #13743. Remove deprecated support.boxModel. Close gh-1231. add myself to AUTHORS.txt --- AUTHORS.txt | 1 + src/support.js | 3 --- test/unit/support.js | 17 +---------------- 3 files changed, 2 insertions(+), 19 deletions(-) diff --git a/AUTHORS.txt b/AUTHORS.txt index 328bf1be7..499bff6f1 100644 --- a/AUTHORS.txt +++ b/AUTHORS.txt @@ -162,4 +162,5 @@ Jean Boussier Adam Coulombe Andrew Plummer Dmitry Gusev +Michał Gołębiowski Brandon Johnson diff --git a/src/support.js b/src/support.js index e05300c4c..4457cd708 100644 --- a/src/support.js +++ b/src/support.js @@ -66,9 +66,6 @@ jQuery.support = (function( support ) { // Where outerHTML is undefined, this still works support.html5Clone = document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav>"; - // jQuery.support.boxModel DEPRECATED in 1.8 since we don't support Quirks Mode - support.boxModel = document.compatMode === "CSS1Compat"; - // Will be defined later support.inlineBlockNeedsLayout = false; support.shrinkWrapBlocks = false; diff --git a/test/unit/support.js b/test/unit/support.js index 343f52df3..6e7923812 100644 --- a/test/unit/support.js +++ b/test/unit/support.js @@ -1,11 +1,5 @@ module("support", { teardown: moduleTeardown }); -test("boxModel", function() { - expect( 1 ); - - equal( jQuery.support.boxModel, document.compatMode === "CSS1Compat" , "jQuery.support.boxModel is sort of tied to quirks mode but unstable since 1.8" ); -}); - test( "zoom of doom (#13089)", function() { expect( 1 ); @@ -76,7 +70,6 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo "radioValue":true, "checkClone":true, "appendChecked":true, - "boxModel":true, "reliableHiddenOffsets":true, "ajax":true, "cors":true, @@ -110,7 +103,6 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo "radioValue":false, "checkClone":true, "appendChecked":true, - "boxModel":true, "reliableHiddenOffsets":true, "ajax":true, "cors":true, @@ -144,7 +136,6 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo "radioValue":false, "checkClone":true, "appendChecked":true, - "boxModel":true, "reliableHiddenOffsets":true, "ajax":true, "cors":true, @@ -178,7 +169,6 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo "radioValue":false, "checkClone":true, "appendChecked":true, - "boxModel":true, "reliableHiddenOffsets":true, "ajax":true, "cors":false, @@ -212,7 +202,6 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo "radioValue":false, "checkClone":true, "appendChecked":true, - "boxModel":true, "reliableHiddenOffsets":false, "ajax":true, "cors":false, @@ -223,7 +212,6 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo expected = { "ajax": true, "appendChecked": false, - "boxModel": true, "changeBubbles": false, "checkClone": false, "checkOn": true, @@ -280,7 +268,6 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo "radioValue":false, "checkClone":false, "appendChecked":false, - "boxModel":true, "reliableHiddenOffsets":false, "ajax":true, "cors":false, @@ -314,7 +301,6 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo "radioValue":true, "checkClone":false, "appendChecked":false, - "boxModel":true, "reliableHiddenOffsets":true, "ajax":true, "cors":true, @@ -348,7 +334,6 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo "radioValue":true, "checkClone":true, "appendChecked":true, - "boxModel":true, "reliableHiddenOffsets":true, "ajax":true, "cors":true, @@ -359,7 +344,7 @@ testIframeWithCallback( "box-sizing does not affect jQuery.support.shrinkWrapBlo if ( expected ) { test("Verify that the support tests resolve as expected per browser", function() { - expect( 31 ); + expect( 30 ); for ( var i in expected ) { if ( jQuery.ajax || i !== "ajax" && i !== "cors" ) { -- 2.39.5