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 @TestOn("vm") | 5 @TestOn("vm") |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 | 8 |
9 import 'package:shelf/shelf.dart' as shelf; | 9 import 'package:shelf/shelf.dart' as shelf; |
10 import 'package:shelf/shelf_io.dart' as shelf_io; | 10 import 'package:shelf/shelf_io.dart' as shelf_io; |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 await contentShell.close(); | 143 await contentShell.close(); |
144 } finally { | 144 } finally { |
145 server.close(); | 145 server.close(); |
146 } | 146 } |
147 }); | 147 }); |
148 | 148 |
149 test("reports an error in onExit", () { | 149 test("reports an error in onExit", () { |
150 var contentShell = new ContentShell("http://dart-lang.org", | 150 var contentShell = new ContentShell("http://dart-lang.org", |
151 executable: "_does_not_exist"); | 151 executable: "_does_not_exist"); |
152 expect(contentShell.onExit, throwsA(isApplicationException(startsWith( | 152 expect(contentShell.onExit, throwsA(isApplicationException(startsWith( |
153 "Failed to start content shell: $noSuchFileMessage")))); | 153 "Failed to run Content Shell: $noSuchFileMessage")))); |
154 }); | 154 }); |
155 } | 155 } |
OLD | NEW |