X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;ds=sidebyside;f=test%2Funit%2Fcore.js;h=6bac6309c671cb5afe989daa614bc2913f645156;hb=449e099b97d823ed0252d8821880bc0e471701ea;hp=25ff1f57336c976059b27339f865d08c394ef88e;hpb=b0fe380cf89564305646bbd55d1fd7bd210fd591;p=jquery.git diff --git a/test/unit/core.js b/test/unit/core.js index 25ff1f5..6bac630 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -310,7 +310,7 @@ test("isXMLDoc - XML", function() { } test("jQuery('html')", function() { - expect(13); + expect(15); reset(); jQuery.foo = false; @@ -339,6 +339,9 @@ test("jQuery('html')", function() { ok( j.length >= 2, "Check node,textnode,comment creation (some browsers delete comments)" ); ok( !jQuery("")[0].selected, "Make sure that options are auto-selected #2050" ); + + ok( jQuery("
")[0], "Create a div with closing tag." ); + ok( jQuery("
")[0], "Create a table with closing tag." ); }); test("jQuery('html', context)", function() { @@ -550,6 +553,8 @@ test("jQuery.extend(Object, Object)", function() { same( empty.foo, optionsWithDate.foo, "Dates copy correctly" ); var myKlass = function() {}; + // Makes the class a little more realistic + myKlass.prototype = { someMethod: function(){} }; empty = {}; var optionsWithCustomObject = { foo: { date: new myKlass } }; jQuery.extend(true, empty, optionsWithCustomObject);