Index: test/data/input/css_classes_binding_test.html |
diff --git a/test/data/input/css_classes_binding_test.html b/test/data/input/css_classes_binding_test.html |
index d920e5d58ba1dcff335082cb74c659d71048d951..0890d0c95f8d17abb1b197a12662db6c77d428da 100644 |
--- a/test/data/input/css_classes_binding_test.html |
+++ b/test/data/input/css_classes_binding_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>data_style_binding_test</title> |
<script type='application/javascript' src="testing.js"></script> |
<style> |
.uno { width: 400px } |
@@ -31,6 +30,8 @@ spaces. --> |
this div will have green (008000) bgcolor and monospace font. |
</div> |
<script type="application/dart"> |
+ @observable |
+ library main; |
import 'dart:html'; |
import 'package:web_ui/web_ui.dart'; |
import 'package:unittest/unittest.dart'; |
@@ -39,7 +40,7 @@ spaces. --> |
var two = 'dos'; |
var three = 'tres'; |
var asString = 'uno dos tres'; |
- var asList = ['uno', 'dos', 'tres']; |
+ var asList = toObservable(['uno', 'dos', 'tres']); |
main() { |
window.setTimeout(() { |
expect(query('#test1').classes, unorderedEquals(asList)); |
@@ -48,12 +49,11 @@ spaces. --> |
one = null; |
asList[1] = null; |
asString = 'cuatro cinco'; |
- dispatch(); |
window.setTimeout(() { |
expect(query('#test1').classes, unorderedEquals(['dos', 'tres'])); |
expect(query('#test2').classes, unorderedEquals(['uno', 'tres'])); |
expect(query('#test3').classes, unorderedEquals(['cuatro', 'cinco'])); |
- window.setTimeout(() => window.postMessage('done', '*'), 0); |
+ window.setImmediate(() => window.postMessage('done', '*')); |
}, 0); |
}, 0); |
} |