mirror of
https://github.com/Hopiu/jquery-mobile.git
synced 2026-04-07 16:10:58 +00:00
32 lines
845 B
JavaScript
32 lines
845 B
JavaScript
/*
|
|
* mobile page unit tests
|
|
*/
|
|
module('jquery.mobile.page.js');
|
|
|
|
test( "nested header anchors aren't altered", function(){
|
|
ok(!$('.ui-header > div > a').hasClass('ui-btn'));
|
|
});
|
|
|
|
test( "nested footer anchors aren't altered", function(){
|
|
ok(!$('.ui-footer > div > a').hasClass('ui-btn'));
|
|
});
|
|
|
|
test( "nested bar anchors aren't styled", function(){
|
|
ok(!$('.ui-bar > div > a').hasClass('ui-btn'));
|
|
});
|
|
|
|
test( "unnested footer anchors are styled", function(){
|
|
ok($('.ui-footer > a').hasClass('ui-btn'));
|
|
});
|
|
|
|
test( "unnested footer anchors are styled", function(){
|
|
ok($('.ui-footer > a').hasClass('ui-btn'));
|
|
});
|
|
|
|
test( "unnested bar anchors are styled", function(){
|
|
ok($('.ui-bar > a').hasClass('ui-btn'));
|
|
});
|
|
|
|
test( "no auto-generated back button exists on first page", function(){
|
|
ok( !$('.ui-header > [data-rel="back"]').length );
|
|
});
|