Revert "Export"
[platform/framework/web/web-ui-fw.git] / libs / js / jquery-mobile-1.1.0 / tests / unit / init / init_dialog.js
1 /*
2  * mobile init dialog tests
3  */
4 (function($){
5         module( "jquery.mobile.init dialog load tests" );
6
7         // issue #3275
8         test( "A document containing no pages and a dialog role div will enhance the div as a page", function() {
9                 ok( $("#foo").hasClass( "ui-page" ), "the div has the page class" );
10
11                 // NOTE this will fail when/if we decide to render it as a dialog
12                 ok( !$("#foo").hasClass( "ui-dialog" ), "the div does NOT have the dialog page class" );
13         });
14
15         //NOTE the opposite case is tested everyewhere else in the suite :D
16 })( jQuery );