| Index: third_party/pkg/angular/test/directive/input_select_spec.dart
|
| diff --git a/third_party/pkg/angular/test/directive/input_select_spec.dart b/third_party/pkg/angular/test/directive/input_select_spec.dart
|
| index 6a9059b268020ef02503b7d0cf3fcbca6081e761..2490df1e590f1d02f674346e23c03272b998dc64 100644
|
| --- a/third_party/pkg/angular/test/directive/input_select_spec.dart
|
| +++ b/third_party/pkg/angular/test/directive/input_select_spec.dart
|
| @@ -2,7 +2,7 @@ library input_select_spec;
|
|
|
| import '../_specs.dart';
|
|
|
| -//TODO(misko): re-enabled dissabled tests once we have forms.
|
| +//TODO(misko): re-enabled disabled tests once we have forms.
|
|
|
| main() {
|
| describe('input-select', () {
|
| @@ -376,6 +376,28 @@ main() {
|
| });
|
| });
|
| });
|
| +
|
| + it('issue #392', () {
|
| + _.compile(
|
| + '<div>' +
|
| + '<div ng-if="attached">' +
|
| + '<select ng-model="model">' +
|
| + '<option value="a">foo</option>' +
|
| + '<option value="b">bar</option>' +
|
| + '</select>' +
|
| + '</div>' +
|
| + '</div>');
|
| + _.rootScope.model = 'a';
|
| + _.rootScope.attached = true;
|
| + _.rootScope.$apply();
|
| + expect(_.rootElement).toEqualSelect([['a'], 'b']);
|
| + _.rootScope.attached = false;
|
| + _.rootScope.$apply();
|
| + expect(_.rootElement).toEqualSelect([]);
|
| + _.rootScope.attached = true;
|
| + _.rootScope.$apply();
|
| + expect(_.rootElement).toEqualSelect([['a'], 'b']);
|
| + });
|
| });
|
|
|
|
|
|
|