Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: test/runner/browser/content_shell_test.dart

Issue 1101773002: Add Windows support. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Unused import Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/runner/browser/chrome_test.dart ('k') | test/runner/browser/dartium_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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;
11 import 'package:shelf_web_socket/shelf_web_socket.dart'; 11 import 'package:shelf_web_socket/shelf_web_socket.dart';
12 import 'package:test/src/runner/browser/content_shell.dart'; 12 import 'package:test/src/runner/browser/content_shell.dart';
13 import 'package:test/src/util/io.dart'; 13 import 'package:test/src/util/io.dart';
14 import 'package:test/src/utils.dart'; 14 import 'package:test/src/utils.dart';
15 import 'package:test/test.dart'; 15 import 'package:test/test.dart';
16 16
17 import '../../io.dart';
17 import '../../utils.dart'; 18 import '../../utils.dart';
18 19
19 void main() { 20 void main() {
20 group("running Dart", () { 21 group("running Dart", () {
21 // The Dart to serve in the server. 22 // The Dart to serve in the server.
22 var dart; 23 var dart;
23 24
24 var servePage = (request) { 25 var servePage = (request) {
25 var path = shelfUrl(request).path; 26 var path = shelfUrl(request).path;
26 27
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 var contentShell = new ContentShell( 137 var contentShell = new ContentShell(
137 baseUrlForAddress(server.address, server.port)); 138 baseUrlForAddress(server.address, server.port));
138 return contentShell.close().whenComplete(server.close); 139 return contentShell.close().whenComplete(server.close);
139 }); 140 });
140 }); 141 });
141 142
142 test("reports an error in onExit", () { 143 test("reports an error in onExit", () {
143 var contentShell = new ContentShell("http://dart-lang.org", 144 var contentShell = new ContentShell("http://dart-lang.org",
144 executable: "_does_not_exist"); 145 executable: "_does_not_exist");
145 expect(contentShell.onExit, throwsA(isApplicationException(startsWith( 146 expect(contentShell.onExit, throwsA(isApplicationException(startsWith(
146 "Failed to start content shell: No such file or directory")))); 147 "Failed to start content shell: $noSuchFileMessage"))));
147 }); 148 });
148 } 149 }
OLDNEW
« no previous file with comments | « test/runner/browser/chrome_test.dart ('k') | test/runner/browser/dartium_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698