diff options
| author | Daniel Luz | 2013-08-22 16:44:24 -0300 | 
|---|---|---|
| committer | Brian Ford | 2013-10-02 16:57:26 -0700 | 
| commit | 5b8c78843e8d62a7a67cead8bf04c76aa8ee411d (patch) | |
| tree | dc336b2896b5ba7499efb74dafd910343fdf01c1 /test/AngularSpec.js | |
| parent | fc8034b352121f8f057dbd5e3837eeb17e1df580 (diff) | |
| download | angular.js-5b8c78843e8d62a7a67cead8bf04c76aa8ee411d.tar.bz2 | |
fix(isArrayLike): correctly handle string primitives
Closes #3356
Diffstat (limited to 'test/AngularSpec.js')
| -rw-r--r-- | test/AngularSpec.js | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/test/AngularSpec.js b/test/AngularSpec.js index f6796496..62ea31d9 100644 --- a/test/AngularSpec.js +++ b/test/AngularSpec.js @@ -461,6 +461,13 @@ describe('angular', function() {        expect(log).toEqual(['0:a', '1:b', '2:c']);      }); +    it('should handle string values like arrays', function() { +      var log = []; + +      forEach('bar', function(value, key) { log.push(key + ':' + value)}); +      expect(log).toEqual(['0:b', '1:a', '2:r']); +    }); +      it('should handle objects with length property as objects', function() {        var obj = { | 
