| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library node_bindings_test; | 5 library node_bindings_test; |
| 6 | 6 |
| 7 import 'dart:async'; | |
| 8 import 'dart:html'; | 7 import 'dart:html'; |
| 9 import 'package:mdv/mdv.dart' as mdv; | 8 import 'package:mdv/mdv.dart' as mdv; |
| 10 import 'package:observe/observe.dart'; | |
| 11 import 'package:unittest/html_config.dart'; | 9 import 'package:unittest/html_config.dart'; |
| 12 import 'package:unittest/unittest.dart'; | 10 import 'package:unittest/unittest.dart'; |
| 13 import 'mdv_test_utils.dart'; | 11 import 'mdv_test_utils.dart'; |
| 14 | 12 |
| 15 // Note: this file ported from | 13 // Note: this file ported from |
| 16 // https://github.com/toolkitchen/mdv/blob/master/tests/node_bindings.js | 14 // https://github.com/toolkitchen/mdv/blob/master/tests/node_bindings.js |
| 17 | 15 |
| 18 main() { | 16 main() { |
| 19 mdv.initialize(); | 17 mdv.initialize(); |
| 20 useHtmlConfiguration(); | 18 useHtmlConfiguration(); |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 expect(input.checked, false); | 147 expect(input.checked, false); |
| 150 | 148 |
| 151 input.click(); | 149 input.click(); |
| 152 expect(model[sym('x')], true); | 150 expect(model[sym('x')], true); |
| 153 performMicrotaskCheckpoint(); | 151 performMicrotaskCheckpoint(); |
| 154 | 152 |
| 155 input.click(); | 153 input.click(); |
| 156 expect(model[sym('x')], false); | 154 expect(model[sym('x')], false); |
| 157 }); | 155 }); |
| 158 } | 156 } |
| OLD | NEW |