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

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
« no previous file with comments | « test/data/input/html_escape_test.html ('k') | test/data/input/if_children_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5111bea4c06a7139edfa5b123cfb7bf03d69e225 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,12 @@ BSD-style license that can be found in the LICENSE file.
expect(placeholder, isNotNull);
expect(placeholder.style.display, equals('none'));
x = 3;
- dispatch();
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);
}
« no previous file with comments | « test/data/input/html_escape_test.html ('k') | test/data/input/if_children_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698