We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce15834 commit 168f237Copy full SHA for 168f237
test/spec/provider/watcher.js
@@ -22,6 +22,21 @@ describe('filterWatcherProvider', function() {
22
expect(spy.callCount).toEqual(1);
23
}));
24
25
+ it('should not crash in circular structure situations',
26
+ inject(function(filterWatcher, $document, $window, $rootScope) {
27
+ var o1 = { a: 1, b: 2 };
28
+ var o2 = { a: 1, b: 2 };
29
+ o1.own = o1;
30
+ o1.window = $window;
31
+ o1.document = $document;
32
+ o1.scope = $rootScope;
33
+ o1.trait = o2;
34
+ o2.own = o2;
35
+ (function memoizedOnly(n) {
36
+ return filterWatcher.isMemoized('fName',n) || stub.fn(n);
37
+ })(o1);
38
+ }));
39
+
40
it('should get the result from cache if it\'s memoize',
41
inject(function(filterWatcher, $rootScope) {
42
var scope = $rootScope.$new();
0 commit comments