Ticket #623: ticket623_unitTests.patch

File ticket623_unitTests.patch, 0.7 KB (added by FND, 23 months ago)
  • jsspec/Dates.jsspec.js

     
    620620                var expected = "1st"; 
    621621                value_of(actual).should_be(expected); 
    622622        } 
     623}); 
     624 
     625describe('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        } 
    623636}); 
    624637 
    625638describe('Date formatting', {