blob: e07c3280a20407f64af5bdbc6cd934479b70b558 [file] [log] [blame]
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);
}
});
}