Chromium Code Reviews| Index: test/data/input/text_tostring_test.html |
| diff --git a/test/data/input/text_tostring_test.html b/test/data/input/text_tostring_test.html |
| index 8d429d5231c4a6cc717530cbc0530111a0bb71d2..797b3246ee526aeffb09018ce52b3330d9984357 100644 |
| --- a/test/data/input/text_tostring_test.html |
| +++ b/test/data/input/text_tostring_test.html |
| @@ -8,7 +8,6 @@ BSD-style license that can be found in the LICENSE file. |
| <head> |
| <meta charset="utf-8"> |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> |
| - <title>watch_global_var_test</title> |
| <script type='application/javascript' src="testing.js"></script> |
| </head> |
| <body> |
| @@ -18,10 +17,14 @@ 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'; |
| + |
| + @observable |
| + List list = new ObservableList.from(['initial', 'list state']); |
|
Siggi Cherem (dart-lang)
2013/02/13 19:28:54
it might be worth providing a helper function that
Jennifer Messerly
2013/02/13 20:21:20
Yeah, it's bugging me too. But I dunno if that is
Siggi Cherem (dart-lang)
2013/02/13 20:41:13
sounds good - I think it also has value if we have
Jennifer Messerly
2013/02/14 00:38:09
went with toObservable, cleaned up everything!
|
| + |
| + @observable |
| + Map map = new ObservableMap.from({'initial': 'map', 'state': '!'}); |
| - List list = ['initial', 'list state']; |
| - Map map = {'initial': 'map', 'state': '!'}; |
| final expected = query('#expected'); |
| final actual = query('#actual'); |
| @@ -35,11 +38,11 @@ BSD-style license that can be found in the LICENSE file. |
| map.clear(); |
| map['lazy'] = 'dog'; |
| - dispatch(); |
| + deliverChangesSync(); |
| expect(actual.innerHtml, expected.innerHtml); |
| - window.setTimeout(() => window.postMessage('done', '*'), 0); |
| + window.setImmediate(() => window.postMessage('done', '*')); |
| }, 0); |
| } |
| </script> |