efa2303c64
BUG= R=vsm@google.com Review URL: https://codereview.chromium.org/1930043002 .
19 lines
422 B
Dart
19 lines
422 B
Dart
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);
|
|
}
|
|
});
|
|
}
|