Skip to content
Permalink
Browse files

Replace usage of the removed global reset() method with QUnit.reset().

  • Loading branch information...
jzaefferer committed Jul 28, 2010
1 parent c4b4df4 commit 6f031c10157a2ca2265e0dbf684ef527d79afb56
Showing with 84 additions and 84 deletions.
  1. +5 −5 test/unit/attributes.js
  2. +2 −2 test/unit/core.js
  3. +1 −1 test/unit/effects.js
  4. +74 −74 test/unit/manipulation.js
  5. +2 −2 test/unit/selector.js
@@ -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;
@@ -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
@@ -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
@@ -563,7 +563,7 @@ test("removeClass(Function) with incoming value", function() {

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

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

var testToggleClass = function(valueObj) {
@@ -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" );
@@ -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" );
@@ -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>');

0 comments on commit 6f031c1

Please sign in to comment.
You can’t perform that action at this time.