Skip to content

Commit

Permalink
Replace usage of the removed global reset() method with QUnit.reset().
Browse files Browse the repository at this point in the history
  • Loading branch information
jzaefferer committed Jul 28, 2010
1 parent c4b4df4 commit 6f031c1
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 84 deletions.
10 changes: 5 additions & 5 deletions test/unit/attributes.js
Expand Up @@ -150,7 +150,7 @@ test("attr(String, Object)", function() {
equals( j.attr("name"), "attrvalue", "Check node,textnode,comment for attr" );
j.removeAttr("name");

reset();
QUnit.reset();

var type = jQuery("#check2").attr('type');
var thrown = false;
Expand Down Expand Up @@ -306,7 +306,7 @@ test("val()", function() {
document.getElementById('text1').value = "bla";
equals( jQuery("#text1").val(), "bla", "Check for modified value of input element" );

reset();
QUnit.reset();

equals( jQuery("#text1").val(), "Test", "Check for value of input element" );
// ticket #1714 this caused a JS error in IE
Expand Down Expand Up @@ -504,15 +504,15 @@ var testRemoveClass = function(valueObj) {

ok( !$divs.is('.test'), "Remove Class" );

reset();
QUnit.reset();
$divs = jQuery('div');

$divs.addClass("test").addClass("foo").addClass("bar");
$divs.removeClass( valueObj("test") ).removeClass( valueObj("bar") ).removeClass( valueObj("foo") );

ok( !$divs.is('.test,.bar,.foo'), "Remove multiple classes" );

reset();
QUnit.reset();
$divs = jQuery('div');

// Make sure that a null value doesn't cause problems
Expand Down Expand Up @@ -563,7 +563,7 @@ test("removeClass(Function) with incoming value", function() {

ok( !$divs.is('.test'), "Remove Class" );

reset();
QUnit.reset();
});

var testToggleClass = function(valueObj) {
Expand Down
4 changes: 2 additions & 2 deletions test/unit/core.js
Expand Up @@ -398,7 +398,7 @@ test("isXMLDoc - XML", function() {
test("jQuery('html')", function() {
expect(15);

reset();
QUnit.reset();
jQuery.foo = false;
var s = jQuery("<script>jQuery.foo='test';</script>")[0];
ok( s, "Creating a script" );
Expand All @@ -414,7 +414,7 @@ test("jQuery('html')", function() {
equals( div.childNodes[1].nodeType, 1, "Paragraph." );
equals( div.childNodes[1].firstChild.nodeType, 3, "Paragraph text." );

reset();
QUnit.reset();
ok( jQuery("<link rel='stylesheet'/>")[0], "Creating a link" );

ok( !jQuery("<script/>")[0].parentNode, "Create a script" );
Expand Down
2 changes: 1 addition & 1 deletion test/unit/effects.js
Expand Up @@ -61,7 +61,7 @@ test("show()", function() {

test("show(Number) - other displays", function() {
expect(15);
reset();
QUnit.reset();
stop();

jQuery("#main").append('<div id="show-tests"><div><p><a href="#"></a></p><code></code><pre></pre><span></span></div><table><thead><tr><th></th></tr></thead><tbody><tr><td></td></tr></tbody></table><ul><li></li></ul></div>');
Expand Down

0 comments on commit 6f031c1

Please sign in to comment.