You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
iit('should throw assertion on unstable model', (RootScope rootScope, Logger log) {
// Generates a different, equal, list on each evaluation.
rootScope.context['list'] = new UnstableList();
rootScope.watch('list.list', (n, v) => log(n));
rootScope.digest();
});
class UnstableList {
List get list => new List.generate(3, (i) => i);
}
returns
Test failed: Caught Model did not stabilize in 5 digests. Last 3 iterations:
list.list: [0, 1, 2] <= [0, 1, 2]
list.list: [0, 1, 2] <= [0, 1, 2]
list.list: [0, 1, 2] <= [0, 1, 2]
which looks like what we are expecting.
I'm not checking this test in since we already have similar ones.
Right now they trigger
Observer reaction functions should not change model
.The text was updated successfully, but these errors were encountered: