blob: 4fa4653fef5992ec03439d365d28537a60dd9c63 [file] [log] [blame]
// Copyright (c) 2014, 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.
/// @assertion void addEventListener(String type, EventListener listener,
/// [bool useCapture])
/// Register an event handler of a specific event type on the EventTarget.
/// @description Checks that listener for standard event can be added
import "dart:html";
import "../../../Utils/expect.dart";
main() {
var type = 'click';
IFrameElement x = new IFrameElement();
x.addEventListener(type, (e) {
Expect.equals(type, e.type);
var event = new Event(type);