Commit 6f031c10 authored by jzaefferer's avatar jzaefferer

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

parent c4b4df46
...@@ -150,7 +150,7 @@ test("attr(String, Object)", function() { ...@@ -150,7 +150,7 @@ test("attr(String, Object)", function() {
equals( j.attr("name"), "attrvalue", "Check node,textnode,comment for attr" ); equals( j.attr("name"), "attrvalue", "Check node,textnode,comment for attr" );
j.removeAttr("name"); j.removeAttr("name");
reset(); QUnit.reset();
var type = jQuery("#check2").attr('type'); var type = jQuery("#check2").attr('type');
var thrown = false; var thrown = false;
...@@ -306,7 +306,7 @@ test("val()", function() { ...@@ -306,7 +306,7 @@ test("val()", function() {
document.getElementById('text1').value = "bla"; document.getElementById('text1').value = "bla";
equals( jQuery("#text1").val(), "bla", "Check for modified value of input element" ); 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" ); equals( jQuery("#text1").val(), "Test", "Check for value of input element" );
// ticket #1714 this caused a JS error in IE // ticket #1714 this caused a JS error in IE
...@@ -504,7 +504,7 @@ var testRemoveClass = function(valueObj) { ...@@ -504,7 +504,7 @@ var testRemoveClass = function(valueObj) {
ok( !$divs.is('.test'), "Remove Class" ); ok( !$divs.is('.test'), "Remove Class" );
reset(); QUnit.reset();
$divs = jQuery('div'); $divs = jQuery('div');
$divs.addClass("test").addClass("foo").addClass("bar"); $divs.addClass("test").addClass("foo").addClass("bar");
...@@ -512,7 +512,7 @@ var testRemoveClass = function(valueObj) { ...@@ -512,7 +512,7 @@ var testRemoveClass = function(valueObj) {
ok( !$divs.is('.test,.bar,.foo'), "Remove multiple classes" ); ok( !$divs.is('.test,.bar,.foo'), "Remove multiple classes" );
reset(); QUnit.reset();
$divs = jQuery('div'); $divs = jQuery('div');
// Make sure that a null value doesn't cause problems // Make sure that a null value doesn't cause problems
...@@ -563,7 +563,7 @@ test("removeClass(Function) with incoming value", function() { ...@@ -563,7 +563,7 @@ test("removeClass(Function) with incoming value", function() {
ok( !$divs.is('.test'), "Remove Class" ); ok( !$divs.is('.test'), "Remove Class" );
reset(); QUnit.reset();
}); });
var testToggleClass = function(valueObj) { var testToggleClass = function(valueObj) {
......
...@@ -398,7 +398,7 @@ test("isXMLDoc - XML", function() { ...@@ -398,7 +398,7 @@ test("isXMLDoc - XML", function() {
test("jQuery('html')", function() { test("jQuery('html')", function() {
expect(15); expect(15);
reset(); QUnit.reset();
jQuery.foo = false; jQuery.foo = false;
var s = jQuery("<script>jQuery.foo='test';</script>")[0]; var s = jQuery("<script>jQuery.foo='test';</script>")[0];
ok( s, "Creating a script" ); ok( s, "Creating a script" );
...@@ -414,7 +414,7 @@ test("jQuery('html')", function() { ...@@ -414,7 +414,7 @@ test("jQuery('html')", function() {
equals( div.childNodes[1].nodeType, 1, "Paragraph." ); equals( div.childNodes[1].nodeType, 1, "Paragraph." );
equals( div.childNodes[1].firstChild.nodeType, 3, "Paragraph text." ); equals( div.childNodes[1].firstChild.nodeType, 3, "Paragraph text." );
reset(); QUnit.reset();
ok( jQuery("<link rel='stylesheet'/>")[0], "Creating a link" ); ok( jQuery("<link rel='stylesheet'/>")[0], "Creating a link" );
ok( !jQuery("<script/>")[0].parentNode, "Create a script" ); ok( !jQuery("<script/>")[0].parentNode, "Create a script" );
......
...@@ -61,7 +61,7 @@ test("show()", function() { ...@@ -61,7 +61,7 @@ test("show()", function() {
test("show(Number) - other displays", function() { test("show(Number) - other displays", function() {
expect(15); expect(15);
reset(); QUnit.reset();
stop(); 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>'); 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>');
......
This diff is collapsed.
...@@ -2,7 +2,7 @@ module("selector"); ...@@ -2,7 +2,7 @@ module("selector");
test("element", function() { test("element", function() {
expect(19); expect(19);
reset(); QUnit.reset();
ok( jQuery("*").size() >= 30, "Select all" ); ok( jQuery("*").size() >= 30, "Select all" );
var all = jQuery("*"), good = true; var all = jQuery("*"), good = true;
...@@ -292,7 +292,7 @@ test("pseudo - child", function() { ...@@ -292,7 +292,7 @@ test("pseudo - child", function() {
t( "First Child", "p:first-child", [] ); t( "First Child", "p:first-child", [] );
reset(); QUnit.reset();
t( "Last Child", "p:last-child", ["sap"] ); t( "Last Child", "p:last-child", ["sap"] );
t( "Last Child", "a:last-child", ["simon1","anchor1","mark","yahoo","anchor2","simon","liveLink1","liveLink2"] ); t( "Last Child", "a:last-child", ["simon1","anchor1","mark","yahoo","anchor2","simon","liveLink1","liveLink2"] );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment