| OLD | NEW |
| 1 library HistoryTest; | 1 library HistoryTest; |
| 2 import '../../pkg/unittest/lib/unittest.dart'; | 2 import 'package:unittest/unittest.dart'; |
| 3 import '../../pkg/unittest/lib/html_individual_config.dart'; | 3 import 'package:unittest/html_individual_config.dart'; |
| 4 import 'dart:html'; | 4 import 'dart:html'; |
| 5 import 'dart:async'; | 5 import 'dart:async'; |
| 6 | 6 |
| 7 main() { | 7 main() { |
| 8 useHtmlIndividualConfiguration(); | 8 useHtmlIndividualConfiguration(); |
| 9 | 9 |
| 10 group('supported_state', () { | 10 group('supported_state', () { |
| 11 test('supportsState', () { | 11 test('supportsState', () { |
| 12 expect(History.supportsState, true); | 12 expect(History.supportsState, true); |
| 13 }); | 13 }); |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 var expectation = HashChangeEvent.supported ? returnsNormally : throws; | 75 var expectation = HashChangeEvent.supported ? returnsNormally : throws; |
| 76 expect(() { | 76 expect(() { |
| 77 var event = new HashChangeEvent('change', oldUrl:'old', newUrl: 'new'); | 77 var event = new HashChangeEvent('change', oldUrl:'old', newUrl: 'new'); |
| 78 expect(event is HashChangeEvent, true); | 78 expect(event is HashChangeEvent, true); |
| 79 expect(event.oldUrl, 'old'); | 79 expect(event.oldUrl, 'old'); |
| 80 expect(event.newUrl, 'new'); | 80 expect(event.newUrl, 'new'); |
| 81 }, expectation); | 81 }, expectation); |
| 82 }); | 82 }); |
| 83 }); | 83 }); |
| 84 } | 84 } |
| OLD | NEW |