Index: pkg/polymer_expressions/test/eval_test.dart |
diff --git a/pkg/polymer_expressions/test/eval_test.dart b/pkg/polymer_expressions/test/eval_test.dart |
index 952e78e9ae1e68118a8dd1ad30f25dcf141e42a1..237a9c8e28eecb01f8fd83fec8dd211f3af93e6a 100644 |
--- a/pkg/polymer_expressions/test/eval_test.dart |
+++ b/pkg/polymer_expressions/test/eval_test.dart |
@@ -215,26 +215,9 @@ main() { |
expectEval('a || b', false, null, {'a': null, 'b': null}); |
}); |
- test('should evaluate an "in" expression', () { |
- var scope = new Scope(variables: {'items': [1, 2, 3]}); |
- var comprehension = eval(parse('item in items'), scope); |
- expect(comprehension.iterable, orderedEquals([1, 2, 3])); |
+ test('should not evaluate "in" expressions', () { |
+ expect(() => eval(parse('item in items'), null), throws); |
}); |
- |
- test('should evaluate complex "in" expressions', () { |
- var holder = new ListHolder([1, 2, 3]); |
- var scope = new Scope(variables: {'holder': holder}); |
- var comprehension = eval(parse('item in holder.items'), scope); |
- expect(comprehension.iterable, orderedEquals([1, 2, 3])); |
- }); |
- |
- test('should handle null iterators in "in" expressions', () { |
- var scope = new Scope(variables: {'items': null}); |
- var comprehension = eval(parse('item in items'), scope); |
- expect(comprehension, isNotNull); |
- expect(comprehension.iterable, []); |
- }); |
- |
}); |
group('assign', () { |
@@ -339,19 +322,6 @@ main() { |
); |
}); |
- test('should observe an comprehension', () { |
- var items = new ObservableList(); |
- var foo = new Foo(name: 'foo'); |
- return expectObserve('item in items', |
- variables: {'items': items}, |
- beforeMatcher: (c) => c.iterable.isEmpty, |
- mutate: () { |
- items.add(foo); |
- }, |
- afterMatcher: (c) => c.iterable.contains(foo) |
- ); |
- }); |
- |
}); |
} |