| Index: tests/html/element_test.dart
|
| diff --git a/tests/html/element_test.dart b/tests/html/element_test.dart
|
| index 06b1e41ef05f06b238d1639003f92e53f1fd46db..bf6874a9f3917ea7df4718dc568e0ca6ea1cddd7 100644
|
| --- a/tests/html/element_test.dart
|
| +++ b/tests/html/element_test.dart
|
| @@ -220,6 +220,16 @@ main() {
|
| expect(node.parent, isNull);
|
| expect(node.innerHtml, 'foobar');
|
| });
|
| +
|
| + test('.html can fire events', () {
|
| + var e = new Element.html('<button>aha</button>');
|
| + var gotEvent = false;
|
| + e.onClick.listen((_) {
|
| + gotEvent = true;
|
| + });
|
| + e.click();
|
| + expect(gotEvent, isTrue, reason: 'click should have raised click event');
|
| + });
|
| });
|
|
|
| group('eventListening', () {
|
|
|