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

Unified Diff: test/data/input/iterate_attribute_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/iterate_attribute_test.html
diff --git a/test/data/input/iterate_attribute_test.html b/test/data/input/iterate_attribute_test.html
index 6e70de18423c4b67ce12221f0d27edfc054b5b6c..96cbf4883fa59a7a85826707694e7dda908a07e7 100644
--- a/test/data/input/iterate_attribute_test.html
+++ b/test/data/input/iterate_attribute_test.html
@@ -18,19 +18,19 @@ BSD-style license that can be found in the LICENSE file.
<script type="application/dart">
import 'dart:html';
import 'package:unittest/unittest.dart';
- import 'package:web_ui/watcher.dart';
+ import 'package:web_ui/observe.dart';
- var list = <String>['a', 'b', 'c', 'e'];
+ @observable var list = new ObservableList.from(['a', 'b', 'c', 'e']);
main() {
window.setTimeout(() {
expect(document.query("#test").innerHtml, equalsIgnoringWhitespace(
'<span>a</span> <span>b</span> <span>c</span> <span>e</span>'));
list[3] = 'd';
- dispatch();
+ deliverChangesSync();
window.setTimeout(() {
expect(document.query("#test").innerHtml, equalsIgnoringWhitespace(
'<span>a</span> <span>b</span> <span>c</span> <span>d</span>'));
- window.setTimeout(() => window.postMessage('done', '*'), 0);
+ window.setImmediate(() => window.postMessage('done', '*'));
}, 0);
}, 0);
}

Powered by Google App Engine
This is Rietveld 408576698