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..7b1ea7c831b7c7e0c755115e2b037638a03c2c49 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 |
Siggi Cherem (dart-lang)
2013/02/13 19:28:54
yay! I was waiting for a test like this one =)
Jennifer Messerly
2013/02/14 00:38:09
Done.
|
+ 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 = new ObservableList.from(['uno', 'dos', 'tres']); |
main() { |
window.setTimeout(() { |
expect(query('#test1').classes, unorderedEquals(asList)); |
@@ -48,12 +49,12 @@ spaces. --> |
one = null; |
asList[1] = null; |
asString = 'cuatro cinco'; |
- dispatch(); |
+ deliverChangesSync(); |
Siggi Cherem (dart-lang)
2013/02/13 19:28:54
remove?
Jennifer Messerly
2013/02/14 00:38:09
Done.
|
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); |
} |