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

Unified Diff: test/iron_iconset_test.dart

Issue 1418513006: update elements and fix some bugs (Closed) Base URL: git@github.com:dart-lang/polymer_elements.git@master
Patch Set: code review updates Created 5 years, 2 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 | « test/iron_iconset_svg_test.html ('k') | test/iron_input_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « test/iron_iconset_svg_test.html ('k') | test/iron_input_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698