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

Unified Diff: test/iron_meta_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_media_query_test.dart ('k') | test/iron_overlay_behavior_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/iron_meta_test.dart
diff --git a/test/iron_meta_test.dart b/test/iron_meta_test.dart
index 267861932ba1d73d1262d2ed11313b94413cdf4c..1f619fe47e173fbca29121b78a32bf66b8ab0844 100644
--- a/test/iron_meta_test.dart
+++ b/test/iron_meta_test.dart
@@ -4,6 +4,7 @@
@TestOn('browser')
library polymer_elements.test.iron_meta_test;
+import 'dart:js';
import 'package:polymer_elements/iron_meta.dart';
import 'package:test/test.dart';
import 'package:web_components/web_components.dart';
@@ -137,5 +138,15 @@ main() async {
expect(registeredValue, secondValue);
});
});
+
+ group('singleton', () {
+
+ test('only one ironmeta created', () {
+ var ironMeta = context['Polymer']['IronMeta'];
+ var first = ironMeta.callMethod('getIronMeta');
+ var second = ironMeta.callMethod('getIronMeta');
+ expect(first, second);
+ });
+ });
});
}
« no previous file with comments | « test/iron_media_query_test.dart ('k') | test/iron_overlay_behavior_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698