From b00da987a9e0e4378d8252add8e15ad2e508901d Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 29 Nov 2011 16:54:25 -0500 Subject: scope($digest): add new&old val to the infinite $digest log --- test/service/scopeSpec.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/service/scopeSpec.js b/test/service/scopeSpec.js index 6e8d78ff..47c5f889 100644 --- a/test/service/scopeSpec.js +++ b/test/service/scopeSpec.js @@ -216,7 +216,11 @@ describe('Scope', function() { $rootScope.$digest(); }).toThrow('100 $digest() iterations reached. Aborting!\n'+ 'Watchers fired in the last 5 iterations: ' + - '[["a","b"],["a","b"],["a","b"],["a","b"],["a","b"]]'); + '[["a; newVal: 96; oldVal: 95","b; newVal: 97; oldVal: 96"],' + + '["a; newVal: 97; oldVal: 96","b; newVal: 98; oldVal: 97"],' + + '["a; newVal: 98; oldVal: 97","b; newVal: 99; oldVal: 98"],' + + '["a; newVal: 99; oldVal: 98","b; newVal: 100; oldVal: 99"],' + + '["a; newVal: 100; oldVal: 99","b; newVal: 101; oldVal: 100"]]'); })); -- cgit v1.2.3