| Index: tests/html/events_test.dart
|
| diff --git a/tests/html/events_test.dart b/tests/html/events_test.dart
|
| index ebb9181f62b0421ca6c423771587abda5e1eb40b..3b87540abf06fdad334c4739e5ec0e0adfcb893d 100644
|
| --- a/tests/html/events_test.dart
|
| +++ b/tests/html/events_test.dart
|
| @@ -71,7 +71,16 @@ main() {
|
| provider.forTarget(element).listen(handler);
|
| invocationCounter = 0;
|
| element.dispatchEvent(event);
|
| - expect(invocationCounter, 1);
|
| +
|
| + // NOTE: when run in a custom zone, the handler is wrapped
|
| + // The logic for html events which ensures identical handlers are added only
|
| + // once is therefor muted by the wrapped handlers.
|
| + // Hence, we get different behavior depending on the current zone.
|
| + if(Zone.current == Zone.ROOT) {
|
| + expect(invocationCounter, 1);
|
| + } else {
|
| + expect(invocationCounter, 2);
|
| + }
|
| });
|
|
|
| test('InitMouseEvent', () {
|
|
|