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

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
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..ec49d747c8448201f8b82adf2d33f061bb8350ca 100644
--- a/test/data/input/if_fragments2_test.html
+++ b/test/data/input/if_fragments2_test.html
@@ -22,14 +22,14 @@ 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);
+ deliverChangesSync();
+ window.setImmediate(() => window.postMessage('done', '*'));
}, 0);
}
</script>

Powered by Google App Engine
This is Rietveld 408576698