Commit e01ff6cd authored by jeresig's avatar jeresig

Cleaned up divs that should've been removed after a test run.

parent d24443fb
...@@ -977,7 +977,7 @@ test("empty()", function() { ...@@ -977,7 +977,7 @@ test("empty()", function() {
}); });
test("jQuery.cleanData", function() { test("jQuery.cleanData", function() {
expect(10); expect(14);
var type, pos, div, child; var type, pos, div, child;
...@@ -1007,6 +1007,9 @@ test("jQuery.cleanData", function() { ...@@ -1007,6 +1007,9 @@ test("jQuery.cleanData", function() {
// Should do nothing // Should do nothing
pos = "Inner"; pos = "Inner";
child.trigger("click"); child.trigger("click");
// Should trigger 2
div.remove();
type = "html"; type = "html";
...@@ -1023,6 +1026,9 @@ test("jQuery.cleanData", function() { ...@@ -1023,6 +1026,9 @@ test("jQuery.cleanData", function() {
// Should do nothing // Should do nothing
pos = "Inner"; pos = "Inner";
child.trigger("click"); child.trigger("click");
// Should trigger 2
div.remove();
function getDiv() { function getDiv() {
var div = jQuery("<div class='outer'><div class='inner'></div></div>").click(function(){ var div = jQuery("<div class='outer'><div class='inner'></div></div>").click(function(){
......
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