diff --git a/tests/TODO b/tests/TODO index 4f66fa8..30ef027 100644 --- a/tests/TODO +++ b/tests/TODO @@ -1,10 +1,6 @@ This file lists tests that need to be implemented or expanded. See ticket #3121 for changes related to things listed here. -Tests to add: -------------- - * add tests for dojo.place() - Tests to improve: ----------------- * NodeList isn't testing several of its public methods (place, orphan, adopt, etc.) diff --git a/tests/_base/html.html b/tests/_base/html.html index 02ce9ad..d774bc3 100644 --- a/tests/_base/html.html +++ b/tests/_base/html.html @@ -43,7 +43,7 @@ doh.register("t", [ - "doh.is(null, dojo.byId('nonExistantId'));", + "doh.is(null, dojo.byId('nonExistentId'));", "doh.is(null, dojo.byId(null));", "doh.is(null, dojo.byId(''));", "doh.is(undefined, dojo.byId(undefined));", @@ -665,6 +665,19 @@ dojo.destroy(p); doh.t(true, "no exception thrown"); } +/* + // Make sure empty() doesn't disconnect grandchildren from children. + // Uncomment when http://bugs.dojotoolkit.org/ticket/16957 is fixed. + function emptyGrandchildren(){ + var parent = dojo.byId("emptyParent"), + child = dojo.byId("emptyChild"); + + dojo.empty("emptyParent"); + + doh.f(!!parent.firstChild, "parent's children removed"); + doh.t(!!child.firstChild, "child's children remain"); + } +*/ ] ); @@ -915,6 +928,13 @@ > + +