}
var testHtml = function(valueObj) {
- expect(22);
+ expect(24);
jQuery.scriptorder = 0;
}
ok( pass, "Set HTML" );
+ div = jQuery("<div/>").html( valueObj('<div id="parent_1"><div id="child_1"/></div><div id="parent_2"/>') );
+
+ equals( div.children().length, 2, "Make sure two child nodes exist." );
+ equals( div.children().children().length, 1, "Make sure that a grandchild exists." );
+
reset();
// using contents will get comments regular, text, and comment nodes
var j = jQuery("#nonnodes").contents();
});
test("jQuery.cleanData", function() {
- expect(10);
+ expect(14);
var type, pos, div, child;
// Should do nothing
pos = "Inner";
child.trigger("click");
+
+ // Should trigger 2
+ div.remove();
type = "html";
// 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(){
return div;
}
-});
\ No newline at end of file
+});