blob: e4bbe6b0b4865f5f0ab8fbe86ac7191d7356df01 [file] [log] [blame]
library ExceptionsTest;
import '../../pkg/unittest/lib/unittest.dart';
import '../../pkg/unittest/lib/html_config.dart';
import 'dart:html';
main() {
useHtmlConfiguration();
test('EventException', () {
final event = new Event('Event');
// Intentionally do not initialize it!
try {
document.$dom_dispatchEvent(event);
} on EventException catch (e) {
expect(e.name, DomException.UNSPECIFIED_EVENT_TYPE);
}
});
}