blob: d7603b90f90179daad62240ab3547f1aa224580a [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);
}
});
}