| 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 template_binding.test.node_bind_test; | 5 library template_binding.test.node_bind_test; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:html'; | 8 import 'dart:html'; |
| 9 | 9 |
| 10 import 'package:observe/observe.dart' | 10 import 'package:observe/observe.dart' |
| 11 show toObservable, PathObserver, PropertyPath; | 11 show toObservable, PathObserver, PropertyPath; |
| 12 import 'package:observe/mirrors_used.dart'; // make test smaller. | |
| 13 import 'package:template_binding/template_binding.dart' show nodeBind; | 12 import 'package:template_binding/template_binding.dart' show nodeBind; |
| 14 | 13 |
| 15 import 'package:unittest/html_config.dart'; | 14 import 'package:unittest/html_config.dart'; |
| 16 import 'package:unittest/unittest.dart'; | 15 import 'package:unittest/unittest.dart'; |
| 17 import 'utils.dart'; | 16 import 'utils.dart'; |
| 18 | 17 |
| 19 // Note: this file ported from | 18 // Note: this file ported from |
| 20 // https://github.com/toolkitchen/mdv/blob/master/tests/node_bindings.js | 19 // https://github.com/toolkitchen/mdv/blob/master/tests/node_bindings.js |
| 21 | 20 |
| 22 main() => dirtyCheckZone().run(() { | 21 main() => dirtyCheckZone().run(() { |
| (...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 720 }).then(endOfMicrotask).then((_) { | 719 }).then(endOfMicrotask).then((_) { |
| 721 expect(select.value, 'X'); | 720 expect(select.value, 'X'); |
| 722 expect(model['selected'], 'X'); | 721 expect(model['selected'], 'X'); |
| 723 | 722 |
| 724 model['selected'] = 'a'; | 723 model['selected'] = 'a'; |
| 725 }).then(endOfMicrotask).then((_) { | 724 }).then(endOfMicrotask).then((_) { |
| 726 expect(select.value, 'a'); | 725 expect(select.value, 'a'); |
| 727 }); | 726 }); |
| 728 }); | 727 }); |
| 729 } | 728 } |
| OLD | NEW |