mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Added test for #3664 - Dialog init fails on disconnected DOM Element after .remove()
This commit is contained in:
parent
350e2c1a1b
commit
6bdc9f7c96
@ -115,7 +115,7 @@ function margin(el, side) {
|
||||
module("dialog");
|
||||
|
||||
test("init", function() {
|
||||
expect(6);
|
||||
expect(7);
|
||||
|
||||
$("<div></div>").appendTo('body').dialog().remove();
|
||||
ok(true, '.dialog() called on element');
|
||||
@ -124,7 +124,10 @@ test("init", function() {
|
||||
ok(true, '.dialog() called on empty collection');
|
||||
|
||||
$('<div></div>').dialog().remove();
|
||||
ok(true, '.dialog() called on disconnected DOMElement');
|
||||
ok(true, '.dialog() called on disconnected DOMElement - never connected');
|
||||
|
||||
$('<div></div>').appendTo('body').remove().dialog().remove();
|
||||
ok(true, '.dialog() called on disconnected DOMElement - removed');
|
||||
|
||||
$('<div></div>').dialog().dialog("foo").remove();
|
||||
ok(true, 'arbitrary method called after init');
|
||||
|
Loading…
Reference in New Issue
Block a user