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

Unified Diff: test/data/input/attr_multiple_bindings_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/expected/element_ctor_test.html.txt ('k') | test/data/input/bind_hyphenated_attribute_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/data/input/attr_multiple_bindings_test.html
diff --git a/test/data/input/attr_multiple_bindings_test.html b/test/data/input/attr_multiple_bindings_test.html
index c3a626cc5889a31e3657a2c36cf70abc76b4ab4d..0dda2c95016a42ba7c8440b1e353441f75281a81 100644
--- a/test/data/input/attr_multiple_bindings_test.html
+++ b/test/data/input/attr_multiple_bindings_test.html
@@ -8,7 +8,6 @@ BSD-style license that can be found in the LICENSE file.
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <title>watch_global_var_test</title>
<script type='application/javascript' src="testing.js"></script>
</head>
<body>
@@ -23,16 +22,13 @@ BSD-style license that can be found in the LICENSE file.
<pre>{{tryQuery('a', 1, (e) => e.hash)}}</pre>
<script type="application/dart">
import 'dart:html';
- import 'package:web_ui/watcher.dart';
+ import 'package:web_ui/observe.dart';
- final j1 = 'jumps';
- final j2 = 'the';
- final fox = 'Your escaping is bad and you should feel bad!';
+ @observable var j1 = 'jumps';
+ @observable var j2 = 'the';
+ @observable var fox = 'Your escaping is bad and you should feel bad!';
main() {
- window.setTimeout(() {
- dispatch();
- window.setTimeout(() => window.postMessage('done', '*'), 0);
- }, 0);
+ window.setTimeout(() => window.postMessage('done', '*'), 0);
}
tryQuery(String selector, int i, void callback(elem)) {
« no previous file with comments | « test/data/expected/element_ctor_test.html.txt ('k') | test/data/input/bind_hyphenated_attribute_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698