add:  stop(); $.get("data/dashboard.xml", function (xml) { var root = $(xml.documentElement).clone(); $("tab:first", xml).text("origval"); $("tab:first", root).text("cloneval"); equals($("tab:first", xml).text(), "origval", "Check original XML node was correctly set"); equals($("tab:first", root).text(), "cloneval", "Check cloned XML node was correctly set"); start(); }); 
context: test("clone()", function() {	expect(4);	ok( 'This is a normal link: Yahoo' == $('#en').text(), 'Assert text for #en' );	var clone = $('#yahoo').clone();	ok( 'Try them out:Yahoo' == $('#first').append(clone).text(), 'Check for clone' );	ok( 'This is a normal link: Yahoo' == $('#en').text(), 'Reassert text for #en' );	// using contents will get comments regular, text, and comment nodes	var cl = $("#nonnodes").contents().clone();	ok( cl.length >= 2, "Check node,textnode,comment clone works (some browsers delete comments on clone)" );});
meta: 1375	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1375/279f77e9609fba62c11a06f8c65221b16f7bc7d4/core.js/clean/test/unit/core.js