Index: test/iron_iconset_test.dart |
diff --git a/test/iron_iconset_test.dart b/test/iron_iconset_test.dart |
index 4359a22f074d6d98b66ebecfaf9af786442f718c..4f2393d7a0bf7d89299c05f2fe57a6cee07c3216 100644 |
--- a/test/iron_iconset_test.dart |
+++ b/test/iron_iconset_test.dart |
@@ -4,6 +4,8 @@ |
@TestOn('browser') |
library polymer_elements.test.iron_iconset_test; |
+import 'dart:html'; |
+import 'package:polymer_interop/polymer_interop.dart'; |
import 'package:polymer_elements/iron_iconset.dart'; |
import 'package:test/test.dart'; |
import 'package:web_components/web_components.dart'; |
@@ -27,6 +29,14 @@ main() async { |
test('it can be accessed via iron-meta', () { |
expect(meta.byKey('foo'), iconset); |
}); |
+ |
+ test('it fires an iron-iconset-added event on the window', () { |
+ return window.on['iron-iconset-added'].first.then((ev) { |
+ ev = convertToDart(ev); |
+ expect(ev, isNotNull); |
+ expect(ev.detail, iconset); |
+ }); |
+ }); |
}); |
group('when src, width, iconSize and icons are assigned', () { |
var iconset; |