X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;f=src%2Fjquery%2FcoreTest.js;h=67dea206f9e93a0277df708154f416a074e4a2ae;hb=a960b2d3b50bd4077b646d020ef0ec3cd7328b88;hp=31fe8387b836a5eb24e78f22488e1849d8ae4845;hpb=cc5f46454fbf34ae8a8e526a621cab55e1c79cdb;p=jquery.git diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index 31fe838..67dea20 100644 --- a/src/jquery/coreTest.js +++ b/src/jquery/coreTest.js @@ -396,7 +396,7 @@ test("expressions - attributes", function() { t( "Attribute Ends With", "a[@href $= 'org/']", ["mark"] ); t( "Attribute Contains", "a[@href *= 'google']", ["google","groups"] ); - t("Select options via [@selected]", "#select1 option[@selected]", [] ); + t("Select options via [@selected]", "#select1 option[@selected]", ["option1a"] ); t("Select options via [@selected]", "#select2 option[@selected]", ["option2d"] ); t("Select options via [@selected]", "#select3 option[@selected]", ["option3b", "option3c"] ); @@ -564,3 +564,16 @@ test("removeClass(String) - add three classes and remove again", function() { test("removeAttr(String", function() { ok( $('#mark').removeAttr("class")[0].className == "", "remove class" ); }); + +test("unbind(event)", function() { + expect(3); + var el = $("#firstp"); + el.click(function() { + ok( true, "Fake normal bind" ); + }); + el.click(function(event) { + el.unbind(event); + ok( true, "Fake onebind" ); + }); + el.click().click(); +});