| 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 polymer.test.property_change_test; | 5 library polymer.test.property_change_test; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:html'; | 8 import 'dart:html'; |
| 9 import 'package:polymer/polymer.dart'; | 9 import 'package:polymer/polymer.dart'; |
| 10 import 'package:unittest/unittest.dart'; | 10 import 'package:unittest/unittest.dart'; |
| 11 import 'package:unittest/html_config.dart'; | 11 import 'package:unittest/html_config.dart'; |
| 12 import 'package:unittest/matcher.dart'; | |
| 13 | 12 |
| 14 var _changes = 0; | 13 var _changes = 0; |
| 15 final _done = new Completer(); | 14 final _done = new Completer(); |
| 16 | 15 |
| 17 checkDone() { | 16 checkDone() { |
| 18 if (6 == ++_changes) { | 17 if (6 == ++_changes) { |
| 19 _done.complete(); | 18 _done.complete(); |
| 20 } | 19 } |
| 21 } | 20 } |
| 22 | 21 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 } | 82 } |
| 84 | 83 |
| 85 @initMethod | 84 @initMethod |
| 86 main() { | 85 main() { |
| 87 useHtmlConfiguration(); | 86 useHtmlConfiguration(); |
| 88 | 87 |
| 89 setUp(() => Polymer.onReady); | 88 setUp(() => Polymer.onReady); |
| 90 | 89 |
| 91 test('changes detected', () => _done.future); | 90 test('changes detected', () => _done.future); |
| 92 } | 91 } |
| OLD | NEW |