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

Unified Diff: test/data/input/if_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/if_attribute_test.html
diff --git a/test/data/input/if_attribute_test.html b/test/data/input/if_attribute_test.html
index 6b627c7d5a8768215362f5f96c889466dab589d9..8bf86e5355a956a4fd2d5768dbfb767c2a6f5d6a 100644
--- a/test/data/input/if_attribute_test.html
+++ b/test/data/input/if_attribute_test.html
@@ -16,8 +16,8 @@ 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';
- var x = 2;
+ import 'package:web_ui/observe.dart';
+ @observable var x = 2;
main() {
window.setTimeout(() {
@@ -26,13 +26,13 @@ BSD-style license that can be found in the LICENSE file.
expect(placeholder, isNotNull);
expect(placeholder.style.display, equals('none'));
x = 3;
- dispatch();
+ deliverChangesSync();
window.setTimeout(() {
var div = document.query('#test');
expect(div, isNotNull);
expect(div.innerHtml, equals('3'));
expect(div.previousNode, same(placeholder));
- window.setTimeout(() => window.postMessage('done', '*'), 0);
+ window.setImmediate(() => window.postMessage('done', '*'));
}, 0);
}, 0);
}

Powered by Google App Engine
This is Rietveld 408576698