Skip to content

Commit cc53090

Browse files
author
Jim Palmer
committed
add test for mixed Date types
1 parent acc7f9c commit cc53090

1 file changed

Lines changed: 22 additions & 10 deletions

File tree

unit-tests.html

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -127,16 +127,28 @@
127127
'Mon, 15 Jun 2009 20:45:30 EST',
128128
'Mon, 15 Jun 2009 20:45:30 PDT'
129129
], 'RFC1123 testing different timezones');
130-
wrapTest(
131-
[
132-
'1245098730000',
133-
'14330728000',
134-
'1245098728000'
135-
],[
136-
'14330728000',
137-
'1245098728000',
138-
'1245098730000'
139-
], 'unix epoch, Date.getTime()');
130+
wrapTest(
131+
[
132+
'1245098730000',
133+
'14330728000',
134+
'1245098728000'
135+
],[
136+
'14330728000',
137+
'1245098728000',
138+
'1245098730000'
139+
], 'unix epoch, Date.getTime()');
140+
wrapTest(
141+
[
142+
new Date('2001-01-10'),
143+
'2015-01-01',
144+
new Date('2001-01-01'),
145+
'1998-01-01'
146+
],[
147+
'1998-01-01',
148+
new Date('2001-01-01'),
149+
new Date('2001-01-10'),
150+
'2015-01-01'
151+
], 'mixed Date types');
140152
});
141153
test('version number strings', function () {
142154
wrapTest(

0 commit comments

Comments
 (0)