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

Unified Diff: pkg/template_binding/test/node_bind_test.dart

Issue 213713002: Reapply change that makes path-observer more agressive with property lookups. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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: pkg/template_binding/test/node_bind_test.dart
diff --git a/pkg/template_binding/test/node_bind_test.dart b/pkg/template_binding/test/node_bind_test.dart
index 93bcd8fe2ff1fea8cdd5148e366ab5516552a853..cfe8d7cc6abeb4f2ec214c1cade6152b4eb2c657 100644
--- a/pkg/template_binding/test/node_bind_test.dart
+++ b/pkg/template_binding/test/node_bind_test.dart
@@ -70,8 +70,9 @@ testBindings() {
test('Path unreachable', () {
var text = testDiv.append(new Text('hi'));
var model = 1;
- nodeBind(text).bind('text', new PathObserver(model, 'a'));
- expect(text.text, '');
+ var pathObserver = new PathObserver(model, 'a');
+ expect(() => nodeBind(text).bind('text', pathObserver), throws);
+ expect(text.text, 'hi');
});
test('Observer is Model', () {
« no previous file with comments | « pkg/template_binding/lib/src/template_iterator.dart ('k') | pkg/template_binding/test/template_binding_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698