| OLD | NEW |
| 1 library async_test; | 1 library async_test; |
| 2 | 2 |
| 3 import '../../pkg/unittest/lib/unittest.dart'; | 3 import '../../pkg/unittest/lib/unittest.dart'; |
| 4 import '../../pkg/unittest/lib/html_config.dart'; | 4 import '../../pkg/unittest/lib/html_config.dart'; |
| 5 | 5 |
| 6 import 'dart:async'; | 6 import 'dart:async'; |
| 7 import 'dart:isolate'; | 7 import 'dart:isolate'; |
| 8 import 'dart:html'; | 8 import 'dart:html'; |
| 9 | 9 |
| 10 oneshotTimerIsolate() { | 10 oneshotTimerIsolate() { |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 } | 60 } |
| 61 | 61 |
| 62 main() { | 62 main() { |
| 63 useHtmlConfiguration(); | 63 useHtmlConfiguration(); |
| 64 | 64 |
| 65 test('one shot timer in pure isolate', () { | 65 test('one shot timer in pure isolate', () { |
| 66 expect(spawnFunction(oneshotTimerIsolate).call('START'), | 66 expect(spawnFunction(oneshotTimerIsolate).call('START'), |
| 67 completion('DONE')); | 67 completion('DONE')); |
| 68 }); | 68 }); |
| 69 test('periodic timer in pure isolate', () { | 69 test('periodic timer in pure isolate', () { |
| 70 expect(spawnFunction(oneshotTimerIsolate).call('START'), | 70 expect(spawnFunction(periodicTimerIsolate).call('START'), |
| 71 completion('DONE')); | 71 completion('DONE')); |
| 72 }); | 72 }); |
| 73 test('cancellation in pure isolate', () { | 73 test('cancellation in pure isolate', () { |
| 74 expect(spawnFunction(cancellingIsolate).call('START'), | 74 expect(spawnFunction(cancellingIsolate).call('START'), |
| 75 completion('DONE')); | 75 completion('DONE')); |
| 76 }); | 76 }); |
| 77 } | 77 } |
| OLD | NEW |