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:test/test.dart'; | 9 import 'package:test/test.dart'; |
10 import 'package:test/src/runner/browser/chrome.dart'; | 10 import 'package:test/src/runner/browser/chrome.dart'; |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 await chrome.close(); | 138 await chrome.close(); |
139 } finally { | 139 } finally { |
140 server.close(); | 140 server.close(); |
141 } | 141 } |
142 }); | 142 }); |
143 | 143 |
144 test("reports an error in onExit", () { | 144 test("reports an error in onExit", () { |
145 var chrome = new Chrome("http://dart-lang.org", | 145 var chrome = new Chrome("http://dart-lang.org", |
146 executable: "_does_not_exist"); | 146 executable: "_does_not_exist"); |
147 expect(chrome.onExit, throwsA(isApplicationException(startsWith( | 147 expect(chrome.onExit, throwsA(isApplicationException(startsWith( |
148 "Failed to start Chrome: $noSuchFileMessage")))); | 148 "Failed to run Chrome: $noSuchFileMessage")))); |
149 }); | 149 }); |
150 } | 150 } |
OLD | NEW |