Ticket #623: ticket623_unitTests.patch
| File ticket623_unitTests.patch, 0.7 KB (added by FND, 23 months ago) |
|---|
-
jsspec/Dates.jsspec.js
620 620 var expected = "1st"; 621 621 value_of(actual).should_be(expected); 622 622 } 623 }); 624 625 describe('Escaping', { 626 'should not convert escaped four-digit year format': function() { 627 var actual = new Date(2008,0,31,1,2,3).formatString("Y\Y\Y\Y"); 628 var expected = "YYYY"; 629 value_of(actual).should_be(expected); 630 }, 631 'should not convert escaped two-digit year format': function() { 632 var actual = new Date(2008,0,31,1,2,3).formatString("Y\Y"); 633 var expected = "YY"; 634 value_of(actual).should_be(expected); 635 } 623 636 }); 624 637 625 638 describe('Date formatting', {
