diff options
| author | Misko Hevery | 2013-03-19 22:27:27 -0700 | 
|---|---|---|
| committer | Misko Hevery | 2013-03-29 23:01:52 -0700 | 
| commit | 61f2767ce65562257599649d9eaf9da08f321655 (patch) | |
| tree | cf9c6809bbee62d19e04961f53d5c89bab9dd663 /test/ApiSpecs.js | |
| parent | 5eb968553a1130461ab8704535691e00eb154ac2 (diff) | |
| download | angular.js-61f2767ce65562257599649d9eaf9da08f321655.tar.bz2 | |
feat(ngRepeat): add support for custom tracking of items
BREAKING CHANGE:
It is considered an error to have two items produce
the same track by key. (This was tolerated before.)
Diffstat (limited to 'test/ApiSpecs.js')
| -rw-r--r-- | test/ApiSpecs.js | 37 | 
1 files changed, 0 insertions, 37 deletions
diff --git a/test/ApiSpecs.js b/test/ApiSpecs.js index 1e52cf44..12de39d0 100644 --- a/test/ApiSpecs.js +++ b/test/ApiSpecs.js @@ -23,42 +23,5 @@ describe('api', function() {        expect(map.get('c')).toBe(undefined);      });    }); - - -  describe('HashQueueMap', function() { -    it('should do basic crud with collections', function() { -      var map = new HashQueueMap(); -      map.push('key', 'a'); -      map.push('key', 'b'); -      expect(map[hashKey('key')]).toEqual(['a', 'b']); -      expect(map.peek('key')).toEqual('a'); -      expect(map[hashKey('key')]).toEqual(['a', 'b']); -      expect(map.shift('key')).toEqual('a'); -      expect(map.peek('key')).toEqual('b'); -      expect(map[hashKey('key')]).toEqual(['b']); -      expect(map.shift('key')).toEqual('b'); -      expect(map.shift('key')).toEqual(undefined); -      expect(map[hashKey('key')]).toEqual(undefined); -    }); - -    it('should support primitive and object keys', function() { -      var obj1 = {}, -          obj2 = {}; - -      var map = new HashQueueMap(); -      map.push(obj1, 'a1'); -      map.push(obj1, 'a2'); -      map.push(obj2, 'b'); -      map.push(1, 'c'); -      map.push(undefined, 'd'); -      map.push(null, 'e'); - -      expect(map[hashKey(obj1)]).toEqual(['a1', 'a2']); -      expect(map[hashKey(obj2)]).toEqual(['b']); -      expect(map[hashKey(1)]).toEqual(['c']); -      expect(map[hashKey(undefined)]).toEqual(['d']); -      expect(map[hashKey(null)]).toEqual(['e']); -    }); -  });  });  | 
