| OLD | NEW |
| 1 library ExceptionsTest; | |
| 2 import 'package:unittest/unittest.dart'; | |
| 3 import 'package:unittest/html_config.dart'; | |
| 4 import 'dart:html'; | 1 import 'dart:html'; |
| 5 | 2 |
| 3 import 'package:minitest/minitest.dart'; |
| 4 |
| 6 main() { | 5 main() { |
| 7 useHtmlConfiguration(); | |
| 8 | |
| 9 test('EventException', () { | 6 test('EventException', () { |
| 10 final event = new Event('Event'); | 7 final event = new Event('Event'); |
| 11 // Intentionally do not initialize it! | 8 // Intentionally do not initialize it! |
| 12 try { | 9 try { |
| 13 document.dispatchEvent(event); | 10 document.dispatchEvent(event); |
| 14 } on DomException catch (e) { | 11 } on DomException catch (e) { |
| 15 expect(e.name, DomException.INVALID_STATE); | 12 expect(e.name, DomException.INVALID_STATE); |
| 16 } | 13 } |
| 17 }); | 14 }); |
| 18 } | 15 } |
| OLD | NEW |