| 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 0a6b197e8a0c0139540f28716e9523c3cdf20151..eef68e09a3d723ee166dca378b0f9b700f7be03f 100644
|
| --- a/pkg/polymer/test/custom_event_test.dart
|
| +++ b/pkg/polymer/test/custom_event_test.dart
|
| @@ -7,6 +7,7 @@ library polymer.test.web.custom_event_test;
|
| import 'dart:async';
|
| import 'dart:html';
|
| import 'package:polymer/polymer.dart';
|
| +import 'package:template_binding/template_binding.dart' show nodeBind;
|
| import 'package:unittest/unittest.dart';
|
| import 'package:unittest/html_config.dart';
|
|
|
| @@ -50,6 +51,13 @@ main() {
|
| test('custom event', () {
|
| final testComp = query('test-custom-event');
|
| final fooBar = testComp.fooBar;
|
| +
|
| + final binding = nodeBind(fooBar).bindings['on-barbaz'];
|
| + expect(binding, isNotNull, reason: 'on-barbaz event should be bound');
|
| +
|
| + expect(binding.model is! StreamSubscription, true,
|
| + reason: 'event bindings should not be a StreamSubscription');
|
| +
|
| fooBar.fireFoo(123);
|
| fooBar.fireBarBaz(42);
|
| fooBar.fireFoo(777);
|
|
|