Skip to content
Permalink
Browse files

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

  • Loading branch information
jeresig committed Jan 25, 2010
1 parent d24443f commit e01ff6cda1be44900b9829c718733923b71db11f
Showing with 7 additions and 1 deletion.
  1. +7 −1 test/unit/manipulation.js
@@ -977,7 +977,7 @@ test("empty()", function() {
});

test("jQuery.cleanData", function() {
expect(10);
expect(14);

var type, pos, div, child;

@@ -1007,6 +1007,9 @@ test("jQuery.cleanData", function() {
// Should do nothing
pos = "Inner";
child.trigger("click");

// Should trigger 2
div.remove();

type = "html";

@@ -1023,6 +1026,9 @@ test("jQuery.cleanData", function() {
// Should do nothing
pos = "Inner";
child.trigger("click");

// Should trigger 2
div.remove();

function getDiv() {
var div = jQuery("<div class='outer'><div class='inner'></div></div>").click(function(){

0 comments on commit e01ff6c

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