mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 16:41:07 +00:00
![Florian Schneider](/assets/img/avatar_default.png)
Fix some misspelled flags. Remove some non-existent flags. Fix --short_socket_read and --short_socket_write flags used in IO tests. Running with --ignore-unrecognized-flags is still on because some flags are only visible in DEBUG mode. BUG= R=asiva@google.com Review URL: https://codereview.chromium.org/2247733005 .
28 lines
713 B
Dart
28 lines
713 B
Dart
// 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.
|
|
|
|
import 'package:expect/expect.dart';
|
|
import 'package:async_helper/async_helper.dart';
|
|
import "dart:isolate";
|
|
|
|
enum Foo { BAR, BAZ }
|
|
|
|
main() {
|
|
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();
|
|
});
|
|
asyncStart();
|
|
Isolate.spawn(sendIt, p.sendPort).whenComplete(asyncEnd);
|
|
}
|
|
|
|
void sendIt(port) {
|
|
var map = { Foo.BAR: 42 };
|
|
port.send(map);
|
|
}
|