OLD | NEW |
1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 import 'dart:fletch'; | 5 import 'dart:dartino'; |
6 | 6 |
7 import 'package:expect/expect.dart'; | 7 import 'package:expect/expect.dart'; |
8 | 8 |
9 main() { | 9 main() { |
10 print('simpleMonitorTest'); | 10 print('simpleMonitorTest'); |
11 simpleMonitorTest(DeathReason.CompileTimeError); | 11 simpleMonitorTest(DeathReason.CompileTimeError); |
12 simpleMonitorTest(DeathReason.Terminated); | 12 simpleMonitorTest(DeathReason.Terminated); |
13 simpleMonitorTest(DeathReason.UncaughtException); | 13 simpleMonitorTest(DeathReason.UncaughtException); |
14 | 14 |
15 print('multipleMonitorPortsTest'); | 15 print('multipleMonitorPortsTest'); |
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 if (reason == DeathReason.UncaughtException) throw 'failing'; | 330 if (reason == DeathReason.UncaughtException) throw 'failing'; |
331 if (reason == DeathReason.CompileTimeError) failWithCompileTimeError(); | 331 if (reason == DeathReason.CompileTimeError) failWithCompileTimeError(); |
332 assert(reason == DeathReason.Terminated); | 332 assert(reason == DeathReason.Terminated); |
333 } | 333 } |
334 | 334 |
335 failWithCompileTimeError() { | 335 failWithCompileTimeError() { |
336 a b c; | 336 a b c; |
337 } | 337 } |
338 | 338 |
339 blockInfinitly() => new Channel().receive(); | 339 blockInfinitly() => new Channel().receive(); |
OLD | NEW |