| OLD | NEW |
| 1 library NotificationsTest; | 1 library NotificationsTest; |
| 2 import '../../pkg/unittest/lib/unittest.dart'; | 2 import '../../pkg/unittest/lib/unittest.dart'; |
| 3 import '../../pkg/unittest/lib/html_individual_config.dart'; | 3 import '../../pkg/unittest/lib/html_individual_config.dart'; |
| 4 import 'dart:html'; | 4 import 'dart:html'; |
| 5 | 5 |
| 6 main() { | 6 main() { |
| 7 useHtmlIndividualConfiguration(); | 7 useHtmlIndividualConfiguration(); |
| 8 | 8 |
| 9 group('supported', () { | 9 group('supported', () { |
| 10 test('supported', () { | 10 test('supported', () { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 group('webkitNotifications', () { | 22 group('webkitNotifications', () { |
| 23 if (NotificationCenter.supported) { | 23 if (NotificationCenter.supported) { |
| 24 test('DomException', () { | 24 test('DomException', () { |
| 25 try { | 25 try { |
| 26 window.notifications.createNotification('', '', ''); | 26 window.notifications.createNotification('', '', ''); |
| 27 } on DomException catch (e) { | 27 } on DomException catch (e) { |
| 28 expect(e.name, DomException.SECURITY); | 28 expect(e.name, DomException.SECURITY); |
| 29 } | 29 } |
| 30 }); | 30 }); |
| 31 | 31 |
| 32 /* |
| 33 // Sporadically flaky on Mac Chrome. Uncomment when Issue 8482 is fixed. |
| 32 test('construct notification', () { | 34 test('construct notification', () { |
| 33 var note = new Notification('this is a notification'); | 35 var note = new Notification('this is a notification'); |
| 34 var note2 = new Notification('another notificiation', | 36 var note2 = new Notification('another notificiation', |
| 35 {'option1': 'foo'}); | 37 {'option1': 'foo'}); |
| 36 }); | 38 }); |
| 39 */ |
| 37 } | 40 } |
| 38 }); | 41 }); |
| 39 } | 42 } |
| 40 | 43 |
| OLD | NEW |