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

Unified Diff: pkg/polymer/test/template_distribute_dynamic_test.dart

Issue 41293002: Fixes from polymer.dart API review (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Made Job a part of polymer Created 7 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
Index: pkg/polymer/test/template_distribute_dynamic_test.dart
diff --git a/pkg/polymer/test/template_distribute_dynamic_test.dart b/pkg/polymer/test/template_distribute_dynamic_test.dart
index 130264a8ac93230bf26e4175d2f95df2b6312c43..86c469e35653ecd576631668ba20285c33b9432e 100644
--- a/pkg/polymer/test/template_distribute_dynamic_test.dart
+++ b/pkg/polymer/test/template_distribute_dynamic_test.dart
@@ -5,7 +5,6 @@
import 'dart:async';
import 'dart:html';
import 'package:polymer/polymer.dart';
-import 'package:polymer/platform.dart' as Platform;
import 'package:unittest/unittest.dart';
import 'package:unittest/html_config.dart';
@@ -30,9 +29,7 @@ class XTest extends PolymerElement {
{'name': 'foo'},
{'name': 'bar'}
];
-
- Platform.flush();
- Platform.endOfMicrotask(expectAsync0(() {
+ return new Future(() {
// tickle SD polyfill
offsetHeight;
var children = this.$['echo'].children;
@@ -51,7 +48,7 @@ class XTest extends PolymerElement {
'shadowDOMPolyfill distributes expected number of actual children.');
}
*/
- }));
+ });
}
}

Powered by Google App Engine
This is Rietveld 408576698