Index: tests/isolate/message_enum_test.dart |
=================================================================== |
--- tests/isolate/message_enum_test.dart (revision 0) |
+++ tests/isolate/message_enum_test.dart (working copy) |
@@ -0,0 +1,22 @@ |
+// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+// SharedOptions=--enable-enum |
+ |
+import 'package:expect/expect.dart'; |
+import "dart:isolate"; |
+ |
+enum Foo { BAR, BAZ } |
+main() { |
+ var map = { Foo.BAR: 42 }; |
+ var p; |
+ p = new RawReceivePort((map) { |
+ Expect.equals(1, map.keys.length); |
+ Expect.equals(42, map.values.first); |
+ var key = map.keys.first; |
+ Expect.equals(42, map[key]); |
+ p.close(); |
+ }); |
+ p.sendPort.send(map); |
+} |
Lasse Reichstein Nielsen
2014/11/26 14:29:27
Try this from another isolate too:
main() {
var
koda
2014/11/26 14:37:51
Done.
|