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

Unified Diff: test/data/input/recursive_component_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
« no previous file with comments | « test/data/input/radio_button_test.html ('k') | test/data/input/recursive_test_data.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/data/input/recursive_component_test.html
diff --git a/test/data/input/recursive_component_test.html b/test/data/input/recursive_component_test.html
index 27fa853d7eb83f265420893b7bfb53a1f17518b2..9f1b3256c6511764cb754538cf3409963b086177 100644
--- a/test/data/input/recursive_component_test.html
+++ b/test/data/input/recursive_component_test.html
@@ -21,6 +21,7 @@
<script type='application/dart'>
import 'package:web_ui/web_ui.dart';
import 'recursive_test_data.dart';
+ @observable
class Rec extends WebComponent {
int pos;
}
@@ -30,25 +31,20 @@
<script type="application/dart">
import 'dart:html';
- import 'package:web_ui/watcher.dart';
+ import 'package:web_ui/observe.dart';
import 'recursive_test_data.dart';
main() {
window.setTimeout(() {
- dispatch();
window.setTimeout(() {
len = 1;
- dispatch();
window.setTimeout(() {
len = 3;
- dispatch();
window.setTimeout(() {
len = 2;
- dispatch();
window.setTimeout(() {
len = 1;
- dispatch();
- window.setTimeout(() => window.postMessage('done', '*'), 0);
+ window.setImmediate(() => window.postMessage('done', '*'));
}, 0);
}, 0);
}, 0);
« no previous file with comments | « test/data/input/radio_button_test.html ('k') | test/data/input/recursive_test_data.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698