OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 import 'dart:async'; | 5 import 'dart:async'; |
6 import 'dart:html'; | 6 import 'dart:html'; |
7 import 'package:polymer/auto_binding.dart'; | 7 import 'package:polymer/auto_binding.dart'; |
8 import 'package:polymer/polymer.dart'; | 8 import 'package:polymer/polymer.dart'; |
9 import 'package:unittest/unittest.dart'; | 9 import 'package:unittest/unittest.dart'; |
10 import 'package:unittest/html_config.dart'; | 10 import 'package:unittest/html_config.dart'; |
(...skipping 27 matching lines...) Expand all Loading... |
38 var ce = t.fire('tap', onNode: h, detail: []); | 38 var ce = t.fire('tap', onNode: h, detail: []); |
39 expect(ce.detail, ['handled'], reason: 'element event handler fired'); | 39 expect(ce.detail, ['handled'], reason: 'element event handler fired'); |
40 } | 40 } |
41 | 41 |
42 if (events == 2) completer.complete(); | 42 if (events == 2) completer.complete(); |
43 }); | 43 }); |
44 | 44 |
45 return completer.future; | 45 return completer.future; |
46 }); | 46 }); |
47 }); | 47 }); |
OLD | NEW |