| 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 && windows") | 5 @TestOn("vm && windows") |
| 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/internet_explorer.dart'; | 10 import 'package:test/src/runner/browser/internet_explorer.dart'; |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 await ie.close(); | 96 await ie.close(); |
| 97 } finally { | 97 } finally { |
| 98 server.close(); | 98 server.close(); |
| 99 } | 99 } |
| 100 }); | 100 }); |
| 101 | 101 |
| 102 test("reports an error in onExit", () { | 102 test("reports an error in onExit", () { |
| 103 var ie = new InternetExplorer("http://dart-lang.org", | 103 var ie = new InternetExplorer("http://dart-lang.org", |
| 104 executable: "_does_not_exist"); | 104 executable: "_does_not_exist"); |
| 105 expect(ie.onExit, throwsA(isApplicationException(startsWith( | 105 expect(ie.onExit, throwsA(isApplicationException(startsWith( |
| 106 "Failed to start Internet Explorer: $noSuchFileMessage")))); | 106 "Failed to run Internet Explorer: $noSuchFileMessage")))); |
| 107 }); | 107 }); |
| 108 } | 108 } |
| OLD | NEW |