Tizen 2.1 base
[platform/framework/web/web-ui-fw.git] / libs / js / jquery-mobile-1.0.1pre / tests / unit / page-sections / page_core.js
1 /*
2  * mobile page unit tests
3  */
4 (function($){
5         var libName = 'jquery.mobile.page.js';
6
7         module(libName);
8
9         test( "nested header anchors aren't altered", function(){
10                 ok(!$('.ui-header > div > a').hasClass('ui-btn'));
11         });
12
13         test( "nested footer anchors aren't altered", function(){
14                 ok(!$('.ui-footer > div > a').hasClass('ui-btn'));
15         });
16
17         test( "nested bar anchors aren't styled", function(){
18                 ok(!$('.ui-bar > div > a').hasClass('ui-btn'));
19         });
20
21         test( "unnested footer anchors are styled", function(){
22                 ok($('.ui-footer > a').hasClass('ui-btn'));
23         });
24
25         test( "unnested footer anchors are styled", function(){
26                 ok($('.ui-footer > a').hasClass('ui-btn'));
27         });
28
29         test( "unnested bar anchors are styled", function(){
30                 ok($('.ui-bar > a').hasClass('ui-btn'));
31         });
32
33         test( "no auto-generated back button exists on first page", function(){
34                 ok( !$(".ui-header > :jqmData(rel='back')").length );
35         });
36 })(jQuery);