blob: cc60d42803696856d1bcc1efc76421b38d846afa [file] [log] [blame]
library ExceptionsTest;
import 'package:unittest/unittest.dart';
import 'package:unittest/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 DomException catch (e) {
expect(e.name, DomException.INVALID_STATE);
}
});
}