| 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.event_handlers_test; | 5 library polymer.test.event_handlers_test; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:html'; | 8 import 'dart:html'; |
| 9 | 9 |
| 10 import 'package:logging/logging.dart'; | 10 import 'package:logging/logging.dart'; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 ..onRecord.listen((m) => print('${m.loggerName} ${m.message}')); | 107 ..onRecord.listen((m) => print('${m.loggerName} ${m.message}')); |
| 108 | 108 |
| 109 initPolymer(); | 109 initPolymer(); |
| 110 } | 110 } |
| 111 | 111 |
| 112 @initMethod init() { | 112 @initMethod init() { |
| 113 useHtmlConfiguration(); | 113 useHtmlConfiguration(); |
| 114 | 114 |
| 115 setUp(() => Polymer.onReady); | 115 setUp(() => Polymer.onReady); |
| 116 test('events handled', () { | 116 test('events handled', () { |
| 117 XTest test = query('x-test'); | 117 XTest test = querySelector('x-test'); |
| 118 expect(test._onTestDone, isNotNull, reason: 'ready was called'); | 118 expect(test._onTestDone, isNotNull, reason: 'ready was called'); |
| 119 return test._onTestDone; | 119 return test._onTestDone; |
| 120 }); | 120 }); |
| 121 } | 121 } |
| OLD | NEW |