X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=blobdiff_plain;f=test%2Funit%2Fcore.js;h=85b421d5a628671ff0bd8ae52e6f1edd976345ca;hp=990926d04b9b1903f51fdde7aa28c42f5be5c6f0;hb=8e53f7b5d6716e60d8c8ea7e167f2b187aae9d89;hpb=b5f077ae6af6d644c5ae58ba9fd79a08dc58ba1e diff --git a/test/unit/core.js b/test/unit/core.js index 990926d..85b421d 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -12,7 +12,7 @@ test("Basic requirements", function() { }); test("jQuery()", function() { - expect(22); + expect(23); // Basic constructor's behavior @@ -63,9 +63,12 @@ test("jQuery()", function() { equals( jQuery(document.body).get(0), jQuery('body').get(0), "Test passing an html node to the factory" ); + var exec = false; + var elem = jQuery("
", { width: 10, css: { paddingLeft:1, paddingRight:1 }, + click: function(){ ok(exec, "Click executed."); }, text: "test", "class": "test2", id: "test3" @@ -78,6 +81,9 @@ test("jQuery()", function() { equals( elem[0].firstChild.nodeValue, "test", 'jQuery quick setter text'); equals( elem[0].className, "test2", 'jQuery() quick setter class'); equals( elem[0].id, "test3", 'jQuery() quick setter id'); + + exec = true; + elem.click(); }); test("selector state", function() {