2 * mobile widget unit tests
5 var widgetInitialized = false;
7 module( 'jquery.mobile.widget.js' );
9 $( "#foo" ).live( 'pageinit', function(){
10 // ordering sensitive here, the value has to be set after the call
11 // so that if the widget factory says that its not yet initialized,
12 // which is an exception, the value won't be set
13 $( "#foo-slider" ).slider( 'refresh' );
14 widgetInitialized = true;
17 test( "page is enhanced before init is fired", function() {
18 ok( widgetInitialized );