@@ -43,15 +43,14 @@ test("widget method", function() {
43
43
} ) ;
44
44
45
45
test ( 'baseStructure' , function ( ) {
46
- expect ( 59 ) ;
46
+ expect ( 58 ) ;
47
47
var header , title , table , thead , week , panel , inl , child ,
48
48
inp = init ( '#inp' ) . focus ( ) ,
49
- dp = $ ( '#ui-datepicker-div' ) ,
50
- iframe = ( $ . ui . ie6 ) ;
49
+ dp = $ ( '#ui-datepicker-div' ) ;
51
50
ok ( dp . is ( ':visible' ) , 'Structure - datepicker visible' ) ;
52
51
ok ( ! dp . is ( '.ui-datepicker-rtl' ) , 'Structure - not right-to-left' ) ;
53
52
ok ( ! dp . is ( '.ui-datepicker-multi' ) , 'Structure - not multi-month' ) ;
54
- equal ( dp . children ( ) . length , 2 + ( iframe ? 1 : 0 ) , 'Structure - child count' ) ;
53
+ equal ( dp . children ( ) . length , 2 , 'Structure - child count' ) ;
55
54
56
55
header = dp . children ( ':first' ) ;
57
56
ok ( header . is ( 'div.ui-datepicker-header' ) , 'Structure - header division' ) ;
@@ -78,7 +77,6 @@ test('baseStructure', function() {
78
77
equal ( week . children ( ) . length , 7 , 'Structure - week child count' ) ;
79
78
ok ( week . children ( ':first' ) . is ( 'td.ui-datepicker-week-end' ) , 'Structure - month table first day cell' ) ;
80
79
ok ( week . children ( ':last' ) . is ( 'td.ui-datepicker-week-end' ) , 'Structure - month table second day cell' ) ;
81
- ok ( dp . children ( 'iframe' ) . length === ( iframe ? 1 : 0 ) , 'Structure - iframe' ) ;
82
80
inp . datepicker ( 'hide' ) . datepicker ( 'destroy' ) ;
83
81
84
82
// Editable month/year and button panel
@@ -100,7 +98,7 @@ test('baseStructure', function() {
100
98
inp = init ( '#inp' , { numberOfMonths : 2 } ) ;
101
99
inp . focus ( ) ;
102
100
ok ( dp . is ( '.ui-datepicker-multi' ) , 'Structure multi [2] - multi-month' ) ;
103
- equal ( dp . children ( ) . length , 3 + ( iframe ? 1 : 0 ) , 'Structure multi [2] - child count' ) ;
101
+ equal ( dp . children ( ) . length , 3 , 'Structure multi [2] - child count' ) ;
104
102
child = dp . children ( ':first' ) ;
105
103
ok ( child . is ( 'div.ui-datepicker-group' ) && child . is ( 'div.ui-datepicker-group-first' ) , 'Structure multi [2] - first month division' ) ;
106
104
child = dp . children ( ':eq(1)' ) ;
@@ -121,7 +119,7 @@ test('baseStructure', function() {
121
119
inp = init ( '#inp' , { numberOfMonths : [ 2 , 2 ] } ) ;
122
120
inp . focus ( ) ;
123
121
ok ( dp . is ( '.ui-datepicker-multi' ) , 'Structure multi - multi-month' ) ;
124
- equal ( dp . children ( ) . length , 6 + ( iframe ? 1 : 0 ) , 'Structure multi [2,2] - child count' ) ;
122
+ equal ( dp . children ( ) . length , 6 , 'Structure multi [2,2] - child count' ) ;
125
123
child = dp . children ( ':first' ) ;
126
124
ok ( child . is ( 'div.ui-datepicker-group' ) && child . is ( 'div.ui-datepicker-group-first' ) , 'Structure multi [2,2] - first month division' ) ;
127
125
child = dp . children ( ':eq(1)' ) ;
@@ -156,7 +154,7 @@ test('baseStructure', function() {
156
154
inl = init ( '#inl' , { numberOfMonths : 2 } ) ;
157
155
dp = inl . children ( ) ;
158
156
ok ( dp . is ( '.ui-datepicker-inline' ) && dp . is ( '.ui-datepicker-multi' ) , 'Structure inline multi - main div' ) ;
159
- equal ( dp . children ( ) . length , 3 + ( iframe ? 1 : 0 ) , 'Structure inline multi - child count' ) ;
157
+ equal ( dp . children ( ) . length , 3 , 'Structure inline multi - child count' ) ;
160
158
child = dp . children ( ':first' ) ;
161
159
ok ( child . is ( 'div.ui-datepicker-group' ) && child . is ( 'div.ui-datepicker-group-first' ) , 'Structure inline multi - first month division' ) ;
162
160
child = dp . children ( ':eq(1)' ) ;
@@ -168,13 +166,12 @@ test('baseStructure', function() {
168
166
169
167
test ( 'customStructure' , function ( ) {
170
168
expect ( 20 ) ;
171
- var iframe , header , panel , title , thead ,
169
+ var header , panel , title , thead ,
172
170
dp = $ ( '#ui-datepicker-div' ) ,
173
171
// Check right-to-left localisation
174
172
inp = init ( '#inp' , $ . datepicker . regional . he ) ;
175
173
inp . data ( 'showButtonPanel.datepicker' , true ) ;
176
174
inp . focus ( ) ;
177
- iframe = ( $ . ui . ie6 ) ;
178
175
ok ( dp . is ( '.ui-datepicker-rtl' ) , 'Structure RTL - right-to-left' ) ;
179
176
header = dp . children ( ':first' ) ;
180
177
ok ( header . is ( 'div.ui-datepicker-header' ) , 'Structure RTL - header division' ) ;
0 commit comments