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

Unified Diff: pkg/polymer/test/custom_event_test.dart

Issue 132403010: big update to observe, template_binding, polymer (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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
« no previous file with comments | « pkg/polymer/test/attr_mustache_test.dart ('k') | pkg/polymer/test/nested_binding_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/custom_event_test.dart
diff --git a/pkg/polymer/test/custom_event_test.dart b/pkg/polymer/test/custom_event_test.dart
index eef68e09a3d723ee166dca378b0f9b700f7be03f..08c45af96fbaa388acc9f850ba4e065f626ef363 100644
--- a/pkg/polymer/test/custom_event_test.dart
+++ b/pkg/polymer/test/custom_event_test.dart
@@ -53,10 +53,10 @@ main() {
final fooBar = testComp.fooBar;
final binding = nodeBind(fooBar).bindings['on-barbaz'];
- expect(binding, isNotNull, reason: 'on-barbaz event should be bound');
+ expect(binding is Bindable, true,
+ reason: 'on-barbaz event should be bound');
- expect(binding.model is! StreamSubscription, true,
- reason: 'event bindings should not be a StreamSubscription');
+ expect(binding.value, null, reason: 'event bindings do not have value');
fooBar.fireFoo(123);
fooBar.fireBarBaz(42);
« no previous file with comments | « pkg/polymer/test/attr_mustache_test.dart ('k') | pkg/polymer/test/nested_binding_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698