| Index: tests/lib/async/catch_errors26_test.dart
|
| diff --git a/tests/lib/async/catch_errors26_test.dart b/tests/lib/async/catch_errors26_test.dart
|
| deleted file mode 100644
|
| index d14e1dda2650a8c3477c5f256e3b6e8caaede090..0000000000000000000000000000000000000000
|
| --- a/tests/lib/async/catch_errors26_test.dart
|
| +++ /dev/null
|
| @@ -1,52 +0,0 @@
|
| -// Copyright (c) 2013, 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 'dart:async';
|
| -import 'dart:isolate';
|
| -import 'catch_errors.dart';
|
| -
|
| -main() {
|
| - // We keep a ReceivePort open until all tests are done. This way the VM will
|
| - // hang if the callbacks are not invoked and the test will time out.
|
| - var port = new ReceivePort();
|
| - var events = [];
|
| - StreamController controller;
|
| - Stream stream;
|
| - // Test `StreamController.broadcast` streams. Note that the nested listener
|
| - // doesn't see the error, but the outer one does.
|
| - catchErrors(() {
|
| - catchErrors(() {
|
| - controller = new StreamController.broadcast();
|
| - controller.stream
|
| - .map((x) {
|
| - events.add("map $x");
|
| - return x + 100;
|
| - })
|
| - .transform(new StreamTransformer(
|
| - handleError: (e, sink) => sink.add("error $e")))
|
| - .listen((x) { events.add("stream $x"); });
|
| - }).listen((x) { events.add(x); })
|
| - .asFuture().then((_) { events.add("inner done"); });
|
| - controller.stream.listen((x) { events.add("stream2 $x"); },
|
| - onError: (x) { events.add("stream2 error $x"); });
|
| - controller.add(1);
|
| - // Errors are not allowed to traverse boundaries, but in this case the
|
| - // first listener of the broadcast stream is in the same error-zone. So
|
| - // this should work.
|
| - controller.addError(2);
|
| - controller.close();
|
| - }).listen((x) { events.add("outer: $x"); },
|
| - onDone: () {
|
| - Expect.listEquals(["map 1",
|
| - "stream 101",
|
| - "stream2 1",
|
| - "stream2 error 2",
|
| - "outer: 2",
|
| - "inner done",
|
| - ],
|
| - events);
|
| - port.close();
|
| - });
|
| -}
|
|
|