Index: tests/html/custom/entered_left_view_test.dart |
diff --git a/tests/html/custom/entered_left_view_test.dart b/tests/html/custom/entered_left_view_test.dart |
index 06795cfa9392171bc12ea6d13c4b87732b316a6b..4822d0e6af7d94f9613c9d9928cba99d76b6e328 100644 |
--- a/tests/html/custom/entered_left_view_test.dart |
+++ b/tests/html/custom/entered_left_view_test.dart |
@@ -31,13 +31,6 @@ class Foo extends HtmlElement { |
} |
} |
-// Pump custom events polyfill events. |
-void customElementsTakeRecords() { |
- if (js.context.hasProperty('CustomElements')) { |
- js.context['CustomElements'].callMethod('takeRecords'); |
- } |
-} |
- |
main() { |
useHtmlIndividualConfiguration(); |
@@ -50,15 +43,11 @@ main() { |
var nullSanitizer = new NullTreeSanitizer(); |
var registeredTypes = false; |
- setUp(() { |
- return loadPolyfills().then((_) { |
- if (registeredTypes) { |
- return; |
- } |
- registeredTypes = true; |
- document.register('x-a', Foo); |
- }); |
- }); |
+ setUp(() => customElementsReady.then((_) { |
+ if (registeredTypes) return; |
+ registeredTypes = true; |
+ document.register('x-a', Foo); |
+ })); |
group('standard_events', () { |
var a; |