aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorMike Sherov <mike.sherov@gmail.com>2012-05-18 12:40:10 -0400
committerDave Methvin <dave.methvin@gmail.com>2012-05-18 12:59:31 -0400
commit0a2f93e6df6078072e0b574c368dea9bf1682476 (patch)
tree80393f961694e83babd679014a80ec759eb3e36b /test/unit
parentd12e9b289e65f839da13986f9451e23274f784f1 (diff)
downloadjquery-0a2f93e6df6078072e0b574c368dea9bf1682476.tar.gz
jquery-0a2f93e6df6078072e0b574c368dea9bf1682476.zip
Inline the boxModel test, and correct unit test. Closes gh-781.
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/support.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/unit/support.js b/test/unit/support.js
index d4d9dfe85..8a229f435 100644
--- a/test/unit/support.js
+++ b/test/unit/support.js
@@ -1,6 +1,10 @@
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 ) {
expect( 2 );