aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/core/core.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-06-27 11:32:48 -0400
committerScott González <scott.gonzalez@gmail.com>2012-06-27 11:32:48 -0400
commit5ae668fdb61dd5e516dc599166a31fd46a916bfd (patch)
tree002c635b5410177d4de10c2288230fdd0bbcdbab /tests/unit/core/core.js
parent9b6c1c5cdb18d76d9febfc079a1cc439dc3789b3 (diff)
downloadjquery-ui-5ae668fdb61dd5e516dc599166a31fd46a916bfd.tar.gz
jquery-ui-5ae668fdb61dd5e516dc599166a31fd46a916bfd.zip
Tests: Enable QUnit.config.requireExpects.
Diffstat (limited to 'tests/unit/core/core.js')
-rw-r--r--tests/unit/core/core.js14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/unit/core/core.js b/tests/unit/core/core.js
index 41bc2ab5b..5ebb9e9f4 100644
--- a/tests/unit/core/core.js
+++ b/tests/unit/core/core.js
@@ -28,6 +28,7 @@ asyncTest( "focus", function() {
});
test( "zIndex", function() {
+ expect( 7 );
var el = $( "#zIndexAutoWithParent" ),
parent = el.parent();
equal( el.zIndex(), 100, "zIndex traverses up to find value" );
@@ -46,6 +47,7 @@ test( "zIndex", function() {
});
test( "innerWidth - getter", function() {
+ expect( 2 );
var el = $( "#dimensions" );
equal( el.innerWidth(), 122, "getter passthru" );
@@ -54,6 +56,7 @@ test( "innerWidth - getter", function() {
});
test( "innerWidth - setter", function() {
+ expect( 2 );
var el = $( "#dimensions" );
el.innerWidth( 120 );
@@ -64,6 +67,7 @@ test( "innerWidth - setter", function() {
});
test( "innerHeight - getter", function() {
+ expect( 2 );
var el = $( "#dimensions" );
equal( el.innerHeight(), 70, "getter passthru" );
@@ -72,6 +76,7 @@ test( "innerHeight - getter", function() {
});
test( "innerHeight - setter", function() {
+ expect( 2 );
var el = $( "#dimensions" );
el.innerHeight( 60 );
@@ -82,6 +87,7 @@ test( "innerHeight - setter", function() {
});
test( "outerWidth - getter", function() {
+ expect( 2 );
var el = $( "#dimensions" );
equal( el.outerWidth(), 140, "getter passthru" );
@@ -90,6 +96,7 @@ test( "outerWidth - getter", function() {
});
test( "outerWidth - setter", function() {
+ expect( 2 );
var el = $( "#dimensions" );
el.outerWidth( 130 );
@@ -100,6 +107,7 @@ test( "outerWidth - setter", function() {
});
test( "outerWidth(true) - getter", function() {
+ expect( 2 );
var el = $( "#dimensions" );
equal( el.outerWidth(true), 154, "getter passthru w/ margin" );
@@ -108,6 +116,7 @@ test( "outerWidth(true) - getter", function() {
});
test( "outerWidth(true) - setter", function() {
+ expect( 2 );
var el = $( "#dimensions" );
el.outerWidth( 130, true );
@@ -118,6 +127,7 @@ test( "outerWidth(true) - setter", function() {
});
test( "outerHeight - getter", function() {
+ expect( 2 );
var el = $( "#dimensions" );
equal( el.outerHeight(), 86, "getter passthru" );
@@ -126,6 +136,7 @@ test( "outerHeight - getter", function() {
});
test( "outerHeight - setter", function() {
+ expect( 2 );
var el = $( "#dimensions" );
el.outerHeight( 80 );
@@ -136,6 +147,7 @@ test( "outerHeight - setter", function() {
});
test( "outerHeight(true) - getter", function() {
+ expect( 2 );
var el = $( "#dimensions" );
equal( el.outerHeight(true), 98, "getter passthru w/ margin" );
@@ -144,6 +156,7 @@ test( "outerHeight(true) - getter", function() {
});
test( "outerHeight(true) - setter", function() {
+ expect( 2 );
var el = $( "#dimensions" );
el.outerHeight( 90, true );
@@ -154,6 +167,7 @@ test( "outerHeight(true) - setter", function() {
});
test( "uniqueId / removeUniqueId", function() {
+ expect( 3 );
var el = $( "img" ).eq( 0 );
// support: jQuery <1.6.2