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

Unified Diff: test/data/input/final_one_time_binding_test.html

Issue 49223002: fix webui for sdk 0.8.7 (Closed) Base URL: git@github.com:dart-lang/web-ui.git@master
Patch Set: Created 7 years, 2 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/expected/recursive_component_test.html.txt ('k') | test/data/input/table_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/data/input/final_one_time_binding_test.html
diff --git a/test/data/input/final_one_time_binding_test.html b/test/data/input/final_one_time_binding_test.html
index 11707511f51c92d6d71d002fb4dd452819c5d9eb..5067f726b8bef3b5e03ced17f267f349db7d690a 100644
--- a/test/data/input/final_one_time_binding_test.html
+++ b/test/data/input/final_one_time_binding_test.html
@@ -17,19 +17,20 @@
<div id="four">{{value | final}}</div>
<script type="application/dart">
import 'dart:html';
+ import 'dart:async';
import 'package:web_ui/watcher.dart';
import 'package:unittest/unittest.dart';
String value = 'foo';
main() {
dispatch();
- window.setImmediate(() {
+ Timer.run(() {
expect(query('#one').classes, unorderedEquals(['foo']));
expect(query('#two').classes, unorderedEquals(['foo']));
expect(query('#three').text, 'foo');
expect(query('#four').text, 'foo');
value = 'bar';
dispatch();
- window.setImmediate(() {
+ Timer.run(() {
expect(query('#one').classes, unorderedEquals(['bar']));
expect(query('#two').classes, unorderedEquals(['foo']));
expect(query('#three').text, 'bar');
« no previous file with comments | « test/data/expected/recursive_component_test.html.txt ('k') | test/data/input/table_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698