blob: b8f26ab8aa3e9886cdd1beb1f6043a5f653b8958 [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 DomException catch (e) {
expect(e.name, DomException.INVALID_STATE);
}
});
}