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

Unified Diff: test/data/input/dom_accessor_binding2_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/dir3/bootstrap_path_test_main.dart ('k') | test/data/input/dom_accessor_binding_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/data/input/dom_accessor_binding2_test.html
diff --git a/test/data/input/dom_accessor_binding2_test.html b/test/data/input/dom_accessor_binding2_test.html
index 985397344020c82889082078d8c8da5cf29b566d..4e14189c4c644010ed4547903a89ed8e1c7121c8 100644
--- a/test/data/input/dom_accessor_binding2_test.html
+++ b/test/data/input/dom_accessor_binding2_test.html
@@ -8,25 +8,24 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <title>dom_accessor_binding_test</title>
<script type="application/javascript" src="testing.js"></script>
</head>
<body>
<input type="checkbox" checked="{{boolVar}}">
<script type="application/dart">
import 'dart:html';
- import 'package:web_ui/watcher.dart';
- bool boolVar = false;
+ import 'package:web_ui/observe.dart';
+ @observable bool boolVar = false;
main() {
window.onLoad.listen((e) {
var input = query('input');
document.body.appendText('expected input.checked to be false, got '
'${input.checked}');
boolVar = true;
- dispatch();
+ deliverChangesSync();
document.body.appendText('expected input.checked to be true, got '
'${input.checked}');
- window.setTimeout(() => window.postMessage('done', '*'), 0);
+ window.postMessage('done', '*');
});
}
</script>
« no previous file with comments | « test/data/input/dir3/bootstrap_path_test_main.dart ('k') | test/data/input/dom_accessor_binding_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698