mirror of
https://github.com/tuxis-ie/nsedit.git
synced 2025-05-24 00:24:07 +03:00
Merge commit 'd21ea7816e
' as 'jquery-ui'
This commit is contained in:
commit
e904a80717
629 changed files with 341074 additions and 0 deletions
36
jquery-ui/tests/unit/button/button_events.js
vendored
Normal file
36
jquery-ui/tests/unit/button/button_events.js
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
* button_events.js
|
||||
*/
|
||||
(function($) {
|
||||
|
||||
module("button: events");
|
||||
|
||||
test("buttonset works with single-quote named elements (#7505)", function() {
|
||||
expect( 1 );
|
||||
$("#radio3").buttonset();
|
||||
$("#radio33").click( function(){
|
||||
ok( true, "button clicks work with single-quote named elements" );
|
||||
}).click();
|
||||
});
|
||||
|
||||
asyncTest( "when button loses focus, ensure active state is removed (#8559)", function() {
|
||||
expect( 1 );
|
||||
|
||||
var element = $( "#button" ).button();
|
||||
|
||||
element.one( "keypress", function() {
|
||||
element.one( "blur", function() {
|
||||
ok( !element.is(".ui-state-active"), "button loses active state appropriately" );
|
||||
start();
|
||||
}).blur();
|
||||
});
|
||||
|
||||
element.focus();
|
||||
setTimeout(function() {
|
||||
element
|
||||
.simulate( "keydown", { keyCode: $.ui.keyCode.ENTER } )
|
||||
.simulate( "keypress", { keyCode: $.ui.keyCode.ENTER } );
|
||||
});
|
||||
});
|
||||
|
||||
})(jQuery);
|
Loading…
Add table
Add a link
Reference in a new issue