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

Unified Diff: test/data/input/css_classes_binding_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/constant_argument_test.html ('k') | test/data/input/custom_radio_button_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « test/data/input/constant_argument_test.html ('k') | test/data/input/custom_radio_button_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698