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

Unified Diff: tests/html/custom/entered_left_view_test.dart

Issue 158083002: introduce web_components pkg for consolidated polyfills (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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
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;
« no previous file with comments | « tests/html/custom/document_register_type_extensions_test.html ('k') | tests/html/custom/entered_left_view_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698