| OLD | NEW | 
|---|
| 1 // Copyright (c) 2015, the Dart project authors.  Please see the AUTHORS file | 1 // Copyright (c) 2015, 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 import "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; | 
| 6 import "package:async_helper/async_helper.dart"; | 6 import "package:async_helper/async_helper.dart"; | 
| 7 import "dart:async"; | 7 import "dart:async"; | 
| 8 | 8 | 
| 9 void main() { | 9 void main() { | 
| 10   StackTrace stack; | 10   StackTrace stack; | 
| (...skipping 25 matching lines...) Expand all  Loading... | 
| 36     c.stream.listen((v) { | 36     c.stream.listen((v) { | 
| 37       throw "Unexpected value: $v"; | 37       throw "Unexpected value: $v"; | 
| 38     }, onError: (e, s) { | 38     }, onError: (e, s) { | 
| 39       Expect.equals(string, s.toString()); | 39       Expect.equals(string, s.toString()); | 
| 40       asyncEnd(); | 40       asyncEnd(); | 
| 41     }); | 41     }); | 
| 42     c.addError(0, stringTrace); | 42     c.addError(0, stringTrace); | 
| 43     c.close(); | 43     c.close(); | 
| 44   }); | 44   }); | 
| 45 } | 45 } | 
| OLD | NEW | 
|---|