Commit 0a2f93e6 authored by Mike Sherov's avatar Mike Sherov Committed by Dave Methvin

Inline the boxModel test, and correct unit test. Closes gh-781.

parent d12e9b28
...@@ -82,6 +82,9 @@ jQuery.support = (function() { ...@@ -82,6 +82,9 @@ jQuery.support = (function() {
// Where outerHTML is undefined, this still works // Where outerHTML is undefined, this still works
html5Clone: document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav></:nav>", html5Clone: document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav></:nav>",
// jQuery.support.boxModel DEPRECATED in 1.8 since we don't support Quirks Mode
boxModel: (document.compatMode === "CSS1Compat"),
// Will be defined later // Will be defined later
submitBubbles: true, submitBubbles: true,
changeBubbles: true, changeBubbles: true,
...@@ -95,9 +98,6 @@ jQuery.support = (function() { ...@@ -95,9 +98,6 @@ jQuery.support = (function() {
boxSizingReliable: true boxSizingReliable: true
}; };
// jQuery.support.boxModel DEPRECATED in 1.8 since we don't support Quirks Mode
support.boxModel = (document.compatMode === "CSS1Compat");
// Make sure checked status is properly cloned // Make sure checked status is properly cloned
input.checked = true; input.checked = true;
support.noCloneChecked = input.cloneNode( true ).checked; support.noCloneChecked = input.cloneNode( true ).checked;
......
module("support", { teardown: moduleTeardown }); module("support", { teardown: moduleTeardown });
ok( jQuery.support.boxModel, "jQuery.support.boxModel is perpetually true since 1.8" ); 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" );
});
testIframeWithCallback( "body background is not lost if set prior to loading jQuery (#9238)", "support/bodyBackground", function( color, support ) { testIframeWithCallback( "body background is not lost if set prior to loading jQuery (#9238)", "support/bodyBackground", function( color, support ) {
expect( 2 ); expect( 2 );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment