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

Unified Diff: pkg/polymer/test/unbind_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/unbind_test.dart
diff --git a/pkg/polymer/test/unbind_test.dart b/pkg/polymer/test/unbind_test.dart
index e41e0386cb333a03df56b5f511d8168c7b473365..c6d2d6aa011ede828d5ab200355a40356064c2c3 100644
--- a/pkg/polymer/test/unbind_test.dart
+++ b/pkg/polymer/test/unbind_test.dart
@@ -4,14 +4,13 @@
library polymer.test.unbind_test;
-import 'dart:async' show Future;
+import 'dart:async' show Future, scheduleMicrotask;
import 'dart:html';
@MirrorsUsed(targets: const [Polymer], override: 'polymer.test.unbind_test')
import 'dart:mirrors' show reflect, reflectClass, MirrorSystem, MirrorsUsed;
import 'package:polymer/polymer.dart';
-import 'package:polymer/platform.dart' as Platform;
import 'package:unittest/unittest.dart';
import 'package:unittest/html_config.dart';
@@ -72,7 +71,7 @@ _unbound(node) => reflect(node).getField(unboundSymbol).reflectee;
unbindTests() {
var xTest = document.query('x-test');
xTest.foo = 'bar';
- Platform.flush();
+ scheduleMicrotask(Observable.dirtyCheck);
return delay(null).then((_) {
expect(_unbound(xTest), null, reason:
@@ -88,7 +87,7 @@ unbindTests() {
expect(_unbound(node), null, reason:
'element is bound when not inserted');
node.foo = 'bar';
- Platform.flush();
+ scheduleMicrotask(Observable.dirtyCheck);
return node;
}).then(delay).then((node) {
expect(node.fooWasChanged, true, reason: 'node is actually bound');

Powered by Google App Engine
This is Rietveld 408576698