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: pkg/web_components/test/interop_test.dart

Issue 325893003: Fix, take 3 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 | « pkg/web_components/test/interop2_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/web_components/test/interop_test.dart
diff --git a/pkg/web_components/test/interop_test.dart b/pkg/web_components/test/interop_test.dart
index d7b7a0139e04ab023d95b7b90c1ee6f035ab3cba..64dfb6426f7bc673fb130653e803f77640f12390 100644
--- a/pkg/web_components/test/interop_test.dart
+++ b/pkg/web_components/test/interop_test.dart
@@ -12,13 +12,15 @@ import 'package:unittest/unittest.dart';
import 'package:web_components/interop.dart';
import 'package:web_components/polyfill.dart';
-main() {
- useHtmlConfiguration();
- setUp(() => customElementsReady.then((_) {
+final globalSetup = customElementsReady.then((_) {
registerDartType('x-a', XAWrapper);
registerDartType('x-b', XBWrapper, extendsTag: 'div');
registerDartType('x-c', XCWrapper);
- }));
+ });
+
+main() {
+ useHtmlConfiguration();
+ setUp(() => globalSetup);
test('interop is supported', () {
expect(isSupported, isTrue);
« no previous file with comments | « pkg/web_components/test/interop2_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698