mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Cleaned up divs that should've been removed after a test run.
This commit is contained in:
parent
d24443fb55
commit
e01ff6cda1
@ -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;
|
||||||
|
|
||||||
@ -1008,6 +1008,9 @@ test("jQuery.cleanData", function() {
|
|||||||
pos = "Inner";
|
pos = "Inner";
|
||||||
child.trigger("click");
|
child.trigger("click");
|
||||||
|
|
||||||
|
// Should trigger 2
|
||||||
|
div.remove();
|
||||||
|
|
||||||
type = "html";
|
type = "html";
|
||||||
|
|
||||||
div = getDiv();
|
div = getDiv();
|
||||||
@ -1024,6 +1027,9 @@ test("jQuery.cleanData", function() {
|
|||||||
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(){
|
||||||
ok( true, type + " " + pos + " Click event fired." );
|
ok( true, type + " " + pos + " Click event fired." );
|
||||||
|
Loading…
Reference in New Issue
Block a user