blob: cc4abad8369e0838798bbe1299e6f7356703c5e3 [file] [log] [blame]
// @dart = 2.9
import 'dart:html';
import 'package:expect/minitest.dart';
main() {
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);
}
});
}