diff --git a/test/unit/core.js b/test/unit/core.js index 18f1bb54d..c7f18506c 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -883,11 +883,11 @@ var scriptorder = 0; test("html(String)", function() { expect(10); - var div = $("div"); + var div = $("#main > div"); div.html("test"); var pass = true; for ( var i = 0; i < div.size(); i++ ) { - if ( div.get(i).childNodes.length == 0 ) pass = false; + if ( div.get(i).childNodes.length != 1 ) pass = false; } ok( pass, "Set HTML" );