X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fjquery%2FcoreTest.js;h=67dea206f9e93a0277df708154f416a074e4a2ae;hb=baa44a8f2731ec48f5f1b2349db2f956b7173635;hp=ada71959e34b79247164d110168a46fc34099ba5;hpb=c20924818c560f1afd9c60f188c8bc616583217b;p=jquery.git diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index ada7195..67dea20 100644 --- a/src/jquery/coreTest.js +++ b/src/jquery/coreTest.js @@ -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(); +});