aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/datepicker
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2012-10-26 15:59:29 -0400
committerScott González <scott.gonzalez@gmail.com>2012-10-26 15:59:29 -0400
commit5bd19650a30cbfc2e7f75135e0ebf1788c4b9767 (patch)
tree97dde356e23e0739b52bf560d9c4e71bd16a823f /tests/unit/datepicker
parentd73edfff769603681a0889585b45062cdf98743e (diff)
downloadjquery-ui-5bd19650a30cbfc2e7f75135e0ebf1788c4b9767.tar.gz
jquery-ui-5bd19650a30cbfc2e7f75135e0ebf1788c4b9767.zip
Datepicker: Removed iframe cover for IE6.
Diffstat (limited to 'tests/unit/datepicker')
-rw-r--r--tests/unit/datepicker/datepicker_core.js17
1 files changed, 7 insertions, 10 deletions
diff --git a/tests/unit/datepicker/datepicker_core.js b/tests/unit/datepicker/datepicker_core.js
index 4abdfd106..1a7d8cc82 100644
--- a/tests/unit/datepicker/datepicker_core.js
+++ b/tests/unit/datepicker/datepicker_core.js
@@ -43,15 +43,14 @@ test("widget method", function() {
});
test('baseStructure', function() {
- expect( 59 );
+ expect( 58 );
var header, title, table, thead, week, panel, inl, child,
inp = init('#inp').focus(),
- dp = $('#ui-datepicker-div'),
- iframe = ($.ui.ie6);
+ dp = $('#ui-datepicker-div');
ok(dp.is(':visible'), 'Structure - datepicker visible');
ok(!dp.is('.ui-datepicker-rtl'), 'Structure - not right-to-left');
ok(!dp.is('.ui-datepicker-multi'), 'Structure - not multi-month');
- equal(dp.children().length, 2 + (iframe ? 1 : 0), 'Structure - child count');
+ equal(dp.children().length, 2, 'Structure - child count');
header = dp.children(':first');
ok(header.is('div.ui-datepicker-header'), 'Structure - header division');
@@ -78,7 +77,6 @@ test('baseStructure', function() {
equal(week.children().length, 7, 'Structure - week child count');
ok(week.children(':first').is('td.ui-datepicker-week-end'), 'Structure - month table first day cell');
ok(week.children(':last').is('td.ui-datepicker-week-end'), 'Structure - month table second day cell');
- ok(dp.children('iframe').length === (iframe ? 1 : 0), 'Structure - iframe');
inp.datepicker('hide').datepicker('destroy');
// Editable month/year and button panel
@@ -100,7 +98,7 @@ test('baseStructure', function() {
inp = init('#inp', {numberOfMonths: 2});
inp.focus();
ok(dp.is('.ui-datepicker-multi'), 'Structure multi [2] - multi-month');
- equal(dp.children().length, 3 + (iframe ? 1 : 0), 'Structure multi [2] - child count');
+ equal(dp.children().length, 3, 'Structure multi [2] - child count');
child = dp.children(':first');
ok(child.is('div.ui-datepicker-group') && child.is('div.ui-datepicker-group-first'), 'Structure multi [2] - first month division');
child = dp.children(':eq(1)');
@@ -121,7 +119,7 @@ test('baseStructure', function() {
inp = init('#inp', {numberOfMonths: [2, 2]});
inp.focus();
ok(dp.is('.ui-datepicker-multi'), 'Structure multi - multi-month');
- equal(dp.children().length, 6 + (iframe ? 1 : 0), 'Structure multi [2,2] - child count');
+ equal(dp.children().length, 6, 'Structure multi [2,2] - child count');
child = dp.children(':first');
ok(child.is('div.ui-datepicker-group') && child.is('div.ui-datepicker-group-first'), 'Structure multi [2,2] - first month division');
child = dp.children(':eq(1)');
@@ -156,7 +154,7 @@ test('baseStructure', function() {
inl = init('#inl', {numberOfMonths: 2});
dp = inl.children();
ok(dp.is('.ui-datepicker-inline') && dp.is('.ui-datepicker-multi'), 'Structure inline multi - main div');
- equal(dp.children().length, 3 + (iframe ? 1 : 0), 'Structure inline multi - child count');
+ equal(dp.children().length, 3, 'Structure inline multi - child count');
child = dp.children(':first');
ok(child.is('div.ui-datepicker-group') && child.is('div.ui-datepicker-group-first'), 'Structure inline multi - first month division');
child = dp.children(':eq(1)');
@@ -168,13 +166,12 @@ test('baseStructure', function() {
test('customStructure', function() {
expect( 20 );
- var iframe, header, panel, title, thead,
+ var header, panel, title, thead,
dp = $('#ui-datepicker-div'),
// Check right-to-left localisation
inp = init('#inp', $.datepicker.regional.he);
inp.data('showButtonPanel.datepicker',true);
inp.focus();
- iframe = ($.ui.ie6);
ok(dp.is('.ui-datepicker-rtl'), 'Structure RTL - right-to-left');
header = dp.children(':first');
ok(header.is('div.ui-datepicker-header'), 'Structure RTL - header division');