diff options
| author | Igor Minar | 2011-08-12 02:28:45 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-08-14 23:44:21 -0700 |
| commit | 37b5c5cfe9df70fa2a2c6c681a903b7c356aec74 (patch) | |
| tree | 53a01012cd69c194d40325613313450a1285d494 /test/angular-mocksSpec.js | |
| parent | 966cbd4cf8d795b1706ff400f604c6002d7e81f9 (diff) | |
| download | angular.js-37b5c5cfe9df70fa2a2c6c681a903b7c356aec74.tar.bz2 | |
break(date): remove support for 'long', 'longtime' date formats and 'z' flag
The support for the 'z' formatting flag was removed becase the timezone
info can't be retrieved from the browser apis (except for en-US locale
on some but not all browsers). For this reason we don't want to support
this flag at all.
Related to this, since the 'long' and 'longtime' datetime formats require
the 'z' flag in the formatting string, we are removing support for this
format as well.
Diffstat (limited to 'test/angular-mocksSpec.js')
| -rw-r--r-- | test/angular-mocksSpec.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/test/angular-mocksSpec.js b/test/angular-mocksSpec.js index f24f6e57..bf5c7816 100644 --- a/test/angular-mocksSpec.js +++ b/test/angular-mocksSpec.js @@ -123,12 +123,6 @@ describe('mocks', function(){ }); - it('should fake toString method when a third param is passed in', function() { - var t = new TzDate(0, 0, 'Mon Sep 3 2010 17:05:08 GMT+0500 (XYZ)'); - expect(t.toString()).toBe('Mon Sep 3 2010 17:05:08 GMT+0500 (XYZ)'); - }); - - it('should throw error when no third param but toString called', function() { expect(function() { new TzDate(0,0).toString(); }). toThrow('Method \'toString\' is not implemented in the TzDate mock'); |
