diff --git a/test/directive/input_select_spec.dart b/test/directive/input_select_spec.dart index 2490df1e5..f5d78bab8 100644 --- a/test/directive/input_select_spec.dart +++ b/test/directive/input_select_spec.dart @@ -452,6 +452,27 @@ main() { expect(element).toEqualSelect(['not me', ['me!'], 'nah']); }); + it('should fire ng-change event.', () { + var log = ''; + compile( + ''); + + scope.change = () { + log += 'change:${scope.selection};'; + }; + + scope.$apply(() { + scope.selection = 'c'; + }); + + element.value = 'c'; + _.triggerEvent(element, 'change'); + expect(log).toEqual('change:c;'); + }); + xit('should require', () { compile(