mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-05-02 03:44:43 +00:00
test for new core helpers
This commit is contained in:
parent
eca88ea818
commit
4852491f9e
1 changed files with 2 additions and 2 deletions
|
|
@ -107,12 +107,12 @@
|
|||
|
||||
test( "addDependents works properly", function() {
|
||||
same( $("#parent").jqmData('dependents'), undefined );
|
||||
$( "#parent" ).addDependent( $("#dependent") );
|
||||
$( "#parent" ).addDependents( $("#dependent") );
|
||||
same( $("#parent").jqmData('dependents').length, 1 );
|
||||
});
|
||||
|
||||
test( "removeWithDependents removes the parent element and ", function(){
|
||||
$( "#parent" ).addDependent( $("#dependent") );
|
||||
$( "#parent" ).addDependents( $("#dependent") );
|
||||
same($( "#parent, #dependent" ).length, 2);
|
||||
$( "#parent" ).removeWithDependents();
|
||||
same($( "#parent, #dependent" ).length, 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue