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

Unified Diff: test/data/input/if_fragments2_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/if_children_test.html ('k') | test/data/input/if_fragments3_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/data/input/if_fragments2_test.html
diff --git a/test/data/input/if_fragments2_test.html b/test/data/input/if_fragments2_test.html
index 2ec34483bff622188edf3e7c0675a7f35e475755..c8ac2d91e89e26ae13377c4e6bb0e0fc3daa8a6f 100644
--- a/test/data/input/if_fragments2_test.html
+++ b/test/data/input/if_fragments2_test.html
@@ -22,14 +22,13 @@ BSD-style license that can be found in the LICENSE file.
</template>
<script type="application/dart">
import 'dart:html';
- import 'package:web_ui/watcher.dart';
- var value = '-';
- bool cond = true;
+ import 'package:web_ui/observe.dart';
+ @observable var value = '-';
+ @observable bool cond = true;
main() {
window.setTimeout(() {
cond = false;
- dispatch();
- window.setTimeout(() => window.postMessage('done', '*'), 0);
+ window.setImmediate(() => window.postMessage('done', '*'));
}, 0);
}
</script>
« no previous file with comments | « test/data/input/if_children_test.html ('k') | test/data/input/if_fragments3_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698