aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/css.js
diff options
context:
space:
mode:
authorcjqed <christopherjonesqed@gmail.com>2013-12-11 11:34:05 -0500
committerDave Methvin <dave.methvin@gmail.com>2013-12-23 17:21:22 -0500
commit537e9ced6164074c32df429bb1fa4c30361aa711 (patch)
tree6b051e88b52f93e2cd312de42bc7acfd6f802e1d /test/unit/css.js
parent23db99440497fccbe9db8853a530d3d30d9320e4 (diff)
downloadjquery-537e9ced6164074c32df429bb1fa4c30361aa711.tar.gz
jquery-537e9ced6164074c32df429bb1fa4c30361aa711.zip
Tests: Avoid use of QUnit.reset() in tests by splitting them
Fix #14040 Close gh-1457
Diffstat (limited to 'test/unit/css.js')
-rw-r--r--test/unit/css.js13
1 files changed, 9 insertions, 4 deletions
diff --git a/test/unit/css.js b/test/unit/css.js
index 9cef70be7..77a3f72ac 100644
--- a/test/unit/css.js
+++ b/test/unit/css.js
@@ -391,9 +391,10 @@ test("css(Object) where values are Functions with incoming values", function() {
});
test("show(); hide()", function() {
- expect(22);
- var hiddendiv, div, pass, old, test;
+ expect( 4 );
+
+ var hiddendiv, div;
hiddendiv = jQuery("div.hidden");
hiddendiv.hide();
@@ -406,8 +407,13 @@ test("show(); hide()", function() {
div.appendTo("#qunit-fixture").show();
equal( div.css("display"), "block", "Pre-hidden div shown" );
- QUnit.reset();
+});
+
+test("show();", function() {
+
+ expect( 18 );
+ var hiddendiv, div, pass, old, test;
hiddendiv = jQuery("div.hidden");
equal(jQuery.css( hiddendiv[0], "display"), "none", "hiddendiv is display: none");
@@ -620,7 +626,6 @@ test("toggle()", function() {
test("hide hidden elements (bug #7141)", function() {
expect(3);
- QUnit.reset();
var div = jQuery("<div style='display:none'></div>").appendTo("#qunit-fixture");
equal( div.css("display"), "none", "Element is hidden by default" );