OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, the Dart 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 file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 // Regression test case for http://dartbug.com/23244 | 5 // Regression test case for http://dartbug.com/23244 |
6 import 'dart:async'; | 6 import 'dart:async'; |
7 import 'dart:isolate'; | 7 import 'dart:isolate'; |
8 | 8 |
9 enum Fisk { | 9 enum Fisk { |
10 torsk, | 10 torsk, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 expectTorsk(message[0]); | 54 expectTorsk(message[0]); |
55 expectTorsk(message[1]); | 55 expectTorsk(message[1]); |
56 }); | 56 }); |
57 } | 57 } |
58 | 58 |
59 expectTorsk(Fisk fisk) { | 59 expectTorsk(Fisk fisk) { |
60 if (fisk != Fisk.torsk) { | 60 if (fisk != Fisk.torsk) { |
61 throw "$fisk isn't a ${Fisk.torsk}"; | 61 throw "$fisk isn't a ${Fisk.torsk}"; |
62 } | 62 } |
63 } | 63 } |
64 | |
OLD | NEW |