mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-03-17 14:30:28 +00:00
20 lines
No EOL
536 B
JavaScript
20 lines
No EOL
536 B
JavaScript
/*
|
|
* mobile widget unit tests
|
|
*/
|
|
(function($){
|
|
var widgetInitialized = false;
|
|
|
|
module( 'jquery.mobile.widget.js' );
|
|
|
|
$( "#foo" ).live( 'pageinit', function(){
|
|
// ordering sensitive here, the value has to be set after the call
|
|
// so that if the widget factory says that its not yet initialized,
|
|
// which is an exception, the value won't be set
|
|
$( "#foo-slider" ).slider( 'refresh' );
|
|
widgetInitialized = true;
|
|
});
|
|
|
|
test( "page is enhanced before init is fired", function() {
|
|
ok( widgetInitialized );
|
|
});
|
|
})( jQuery ); |