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

Unified Diff: test/data/input/conditional3_test.html

Issue 12225039: Support for observable models, fixes #259 (Closed) Base URL: https://github.com/dart-lang/web-ui.git@master
Patch Set: Created 7 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: test/data/input/conditional3_test.html
diff --git a/test/data/input/conditional3_test.html b/test/data/input/conditional3_test.html
index 39b4772305eb496feb9aa7a1c8a163123438f1a5..fb4353bea52582104f0e1c346e6aba429ec33196 100644
--- a/test/data/input/conditional3_test.html
+++ b/test/data/input/conditional3_test.html
@@ -19,17 +19,17 @@
</template>
<script type="application/dart">
import 'dart:html';
- import 'package:web_ui/watcher.dart';
+ import 'package:web_ui/observe.dart';
import 'common.dart';
main() {
window.setTimeout(() {
cond = true;
- dispatch();
+ deliverChangesSync();
window.setTimeout(() {
cond = false;
- dispatch();
+ deliverChangesSync();
// in the end, we should see 'no' again
- window.setTimeout(() => window.postMessage('done', '*'), 0);
+ window.setImmediate(() => window.postMessage('done', '*'));
}, 0);
}, 0);
}

Powered by Google App Engine
This is Rietveld 408576698