jquery-ui/tests/unit/button/button_events.js

18 lines
291 B
JavaScript
Raw Normal View History

2010-01-20 14:00:14 +00:00
/*
* button_events.js
*/
(function($) {
module("button: events");
test("click-through", function() {
expect(2);
var set = $("#radio1").buttonset();
set.find("input:first").click(function() {
ok( true );
});
ok( set.find("label:first").click().is(".ui-button") );
});
})(jQuery);