blob: 5521d29d57941b904e30aadb4e6a61afb10ffcb6 [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.dispatchEvent(event);
} on EventException catch (e) {
expect(e.name, DomException.UNSPECIFIED_EVENT_TYPE);
}
});
}