| 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.web.events_test; | 5 library polymer.test.web.events_test; |
| 6 | 6 |
| 7 import 'dart:html'; | 7 import 'dart:html'; |
| 8 import 'dart:js'; | 8 import 'dart:js'; |
| 9 import 'package:polymer/polymer.dart'; | 9 import 'package:polymer/polymer.dart'; |
| 10 import 'package:unittest/html_config.dart'; | 10 import 'package:unittest/html_config.dart'; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 useHtmlConfiguration(); | 25 useHtmlConfiguration(); |
| 26 setUp(() => Polymer.onReady); | 26 setUp(() => Polymer.onReady); |
| 27 | 27 |
| 28 test('detail on JS custom events are proxied', () { | 28 test('detail on JS custom events are proxied', () { |
| 29 var element = querySelector('x-test'); | 29 var element = querySelector('x-test'); |
| 30 expect(element.called, isFalse); | 30 expect(element.called, isFalse); |
| 31 context.callMethod('fireEvent'); | 31 context.callMethod('fireEvent'); |
| 32 expect(element.called, isTrue); | 32 expect(element.called, isTrue); |
| 33 }); | 33 }); |
| 34 }); | 34 }); |
| OLD | NEW |