]> source.dussan.org Git - jquery.git/commitdiff
Fix #13743. Remove deprecated support.boxModel. Close gh-1231.
authorMichał Gołębiowski <m.goleb@gmail.com>
Sun, 7 Apr 2013 12:42:42 +0000 (14:42 +0200)
committerDave Methvin <dave.methvin@gmail.com>
Thu, 18 Apr 2013 03:21:39 +0000 (23:21 -0400)
add myself to AUTHORS.txt

AUTHORS.txt
src/support.js
test/unit/support.js

index 328bf1be7c13780f0c698f4f0a2ec6e9ba3b8bac..499bff6f1bb5af2b4250a8716bfd4be5915b8e1a 100644 (file)
@@ -162,4 +162,5 @@ Jean Boussier <jean.boussier@gmail.com>
 Adam Coulombe <me@adam.co>
 Andrew Plummer <plummer.andrew@gmail.com>
 Dmitry Gusev <dmitry.gusev@gmail.com>
+Michał Gołębiowski <m.goleb@gmail.com>
 Brandon Johnson <bjohn465+github@gmail.com>
index e05300c4cf6b0c3799482a7699f9d651565ce2e3..4457cd708ac15fd511c48b3496773e958e81c9eb 100644 (file)
@@ -66,9 +66,6 @@ jQuery.support = (function( support ) {
        // Where outerHTML is undefined, this still works
        support.html5Clone = document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav></: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;
index 343f52df31d608bbb84c34a107d24bd73882df59..6e79238120779b7ca7165e4226e0f61a58348901 100644 (file)
@@ -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" ) {