dd9bdb5ece
BUG= TEST= Review URL: https://chromiumcodereview.appspot.com//9732019 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@5955 260f80e4-7a28-3924-810f-c04153c831b5
21 lines
974 B
Dart
21 lines
974 B
Dart
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
|
|
// TODO(rnystrom): add a way to supress public classes from DartDoc output.
|
|
// TODO(jacobr): we can remove this class now that we are using the $dom_
|
|
// convention for deprecated methods rather than truly private methods.
|
|
/**
|
|
* This class is intended for testing purposes only.
|
|
*/
|
|
class Testing {
|
|
static void addEventListener(EventTarget target, String type, EventListener listener, bool useCapture) {
|
|
final _EventTargetImpl targetImpl = target;
|
|
targetImpl.$dom_addEventListener(type, listener, useCapture);
|
|
}
|
|
static void removeEventListener(EventTarget target, String type, EventListener listener, bool useCapture) {
|
|
final _EventTargetImpl targetImpl = target;
|
|
targetImpl.$dom_removeEventListener(type, listener, useCapture);
|
|
}
|
|
|
|
} |