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

Unified Diff: pkg/polymer/test/bind_mdv_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/bind_mdv_test.dart
diff --git a/pkg/polymer/test/bind_mdv_test.dart b/pkg/polymer/test/bind_mdv_test.dart
index 6706bde6188920285b4ce3e68f9ea3d30f0cf8dc..3323b0ca21ce5d045340c99a046b95dbaeed2f58 100644
--- a/pkg/polymer/test/bind_mdv_test.dart
+++ b/pkg/polymer/test/bind_mdv_test.dart
@@ -9,8 +9,6 @@ import 'dart:html';
import 'package:custom_element/polyfill.dart';
import 'package:template_binding/template_binding.dart';
import 'package:observe/observe.dart';
-import 'package:observe/src/microtask.dart' show runMicrotask;
-import 'package:polymer/platform.dart' as Platform;
import 'package:unittest/html_config.dart';
import 'package:unittest/unittest.dart';
@@ -67,9 +65,9 @@ bindModelTests() {
// TODO(sorvell): fix this when observe-js lets us explicitly listen for
// a change on input.value
Observable.dirtyCheck();
- Platform.endOfMicrotask(expectAsync0(() {
+ return new Future.microtask(() {
expect(a.value, 'hello');
- }));
+ });
});
}
@@ -90,6 +88,6 @@ Future onAttributeChange(Element node) {
observer.disconnect();
completer.complete();
})..observe(node, attributes: true);
- Platform.flush();
+ scheduleMicrotask(Observable.dirtyCheck);
return completer.future;
-}
+}

Powered by Google App Engine
This is Rietveld 408576698