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 has been archived by the owner on Feb 22, 2018. It is now read-only.
iit(r'should be possible to remove every watch',
(RootScope rootScope, FilterMap filters) {
rootScope.context['foo'] ='bar';
var watch1 = rootScope.watch('(foo|json)+"bar"', (v, p) =>null,
filters: filters);
var watch2 = rootScope.watch('(foo|json)+"bar"', (v, p) =>null,
filters: filters);
expect(() => watch1.remove()).not.toThrow();
expect(() => watch2.remove()).not.toThrow();
});
expect(() => watch2.remove()).not.toThrow(); would throw with Test failed: Caught 'package:angular/change_detection/watch_group.dart': Failed assertion: line 826 pos 12: 'mode != _MODE_DELETED_' is not true.
As we are watching the same expression twice, removing it once removes both. Note: it is not an issue with simple expressions like foo only
The text was updated successfully, but these errors were encountered:
vicb
added a commit
to vicb/angular.dart
that referenced
this issue
Mar 22, 2014
relates to "[Scope] Issue with scope.unwatch() not working dart-archive#787"
The test is disabled because of GH dart-archive#787. The bug existed before
this PR but what only not triggered. The usage of the stringify
filter do trigger the bug.
Consider the following TC:
expect(() => watch2.remove()).not.toThrow();
would throw withTest failed: Caught 'package:angular/change_detection/watch_group.dart': Failed assertion: line 826 pos 12: 'mode != _MODE_DELETED_' is not true.
As we are watching the same expression twice, removing it once removes both. Note: it is not an issue with simple expressions like
foo
onlyThe text was updated successfully, but these errors were encountered: