From 3bd3cc571dcd721f9d71f971aefee23115a5e458 Mon Sep 17 00:00:00 2001
From: Igor Minar
Date: Wed, 2 May 2012 00:33:00 -0700
Subject: fix(select): don't interfere with selection if not databound
Closes #926
---
test/ng/directive/selectSpec.js | 11 +++++++++++
1 file changed, 11 insertions(+)
(limited to 'test/ng/directive')
diff --git a/test/ng/directive/selectSpec.js b/test/ng/directive/selectSpec.js
index d8fe150a..321990e8 100644
--- a/test/ng/directive/selectSpec.js
+++ b/test/ng/directive/selectSpec.js
@@ -61,6 +61,17 @@ describe('select', function() {
});
+ it('should not interfere with selection via selected attr if ngModel directive is not present',
+ function() {
+ compile('');
+ expect(element).toEqualSelect('not me', ['me!'], 'nah');
+ });
+
+
it('should require', function() {
compile(
'