OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 // TODO(rnystrom): add a way to supress public classes from DartDoc output. | 5 // TODO(rnystrom): add a way to supress public classes from DartDoc output. |
6 /** | 6 /** |
7 * This class is intended for testing purposes only. | 7 * This class is intended for testing purposes only. |
8 */ | 8 */ |
9 class Testing { | 9 class Testing { |
10 static void addEventListener(EventTarget target, String type, EventListener li
stener, bool useCapture) { | 10 static void addEventListener(EventTarget target, String type, EventListener li
stener, bool useCapture) { |
11 target._addEventListener(type, listener, useCapture); | 11 final _EventTargetImpl targetImpl = target; |
| 12 targetImpl._addEventListener(type, listener, useCapture); |
12 } | 13 } |
13 static void removeEventListener(EventTarget target, String type, EventListener
listener, bool useCapture) { | 14 static void removeEventListener(EventTarget target, String type, EventListener
listener, bool useCapture) { |
14 target._removeEventListener(type, listener, useCapture); | 15 final _EventTargetImpl targetImpl = target; |
| 16 targetImpl._removeEventListener(type, listener, useCapture); |
15 } | 17 } |
16 | 18 |
17 } | 19 } |
OLD | NEW |