| 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 'dart:async'; | 5 import 'dart:async'; |
| 6 | 6 |
| 7 import 'package:unittest/unittest.dart'; | 7 import 'package:unittest/unittest.dart'; |
| 8 import 'package:unittest/src/runner/browser/chrome.dart'; | 8 import 'package:unittest/src/runner/browser/chrome.dart'; |
| 9 import 'package:unittest/src/util/io.dart'; | 9 import 'package:unittest/src/util/io.dart'; |
| 10 import 'package:shelf/shelf.dart' as shelf; | 10 import 'package:shelf/shelf.dart' as shelf; |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 return chrome.close().whenComplete(server.close); | 122 return chrome.close().whenComplete(server.close); |
| 123 }); | 123 }); |
| 124 }); | 124 }); |
| 125 | 125 |
| 126 test("reports an error in onExit", () { | 126 test("reports an error in onExit", () { |
| 127 var chrome = new Chrome("http://dart-lang.org", | 127 var chrome = new Chrome("http://dart-lang.org", |
| 128 executable: "_does_not_exist"); | 128 executable: "_does_not_exist"); |
| 129 expect(chrome.onExit, throwsA(new isInstanceOf<ProcessException>())); | 129 expect(chrome.onExit, throwsA(new isInstanceOf<ProcessException>())); |
| 130 }); | 130 }); |
| 131 } | 131 } |
| OLD | NEW |