Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(240)

Unified Diff: third_party/pkg/angular/test/directive/input_select_spec.dart

Issue 148453003: Updating Angular version (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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']);
+ });
});

Powered by Google App Engine
This is Rietveld 408576698