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

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

Issue 1027193004: Respect top-level @TestOn declarations. (Closed) Base URL: git@github.com:dart-lang/unittest@master
Patch Set: Add another test. Created 5 years, 9 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
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")
6
5 import 'dart:async'; 7 import 'dart:async';
6 import 'dart:io'; 8 import 'dart:io';
7 9
8 import 'package:unittest/unittest.dart'; 10 import 'package:unittest/unittest.dart';
9 import 'package:unittest/src/runner/browser/chrome.dart'; 11 import 'package:unittest/src/runner/browser/chrome.dart';
10 import 'package:unittest/src/util/io.dart'; 12 import 'package:unittest/src/util/io.dart';
11 import 'package:shelf/shelf.dart' as shelf; 13 import 'package:shelf/shelf.dart' as shelf;
12 import 'package:shelf/shelf_io.dart' as shelf_io; 14 import 'package:shelf/shelf_io.dart' as shelf_io;
13 import 'package:shelf_web_socket/shelf_web_socket.dart'; 15 import 'package:shelf_web_socket/shelf_web_socket.dart';
14 16
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 return chrome.close().whenComplete(server.close); 125 return chrome.close().whenComplete(server.close);
124 }); 126 });
125 }); 127 });
126 128
127 test("reports an error in onExit", () { 129 test("reports an error in onExit", () {
128 var chrome = new Chrome("http://dart-lang.org", 130 var chrome = new Chrome("http://dart-lang.org",
129 executable: "_does_not_exist"); 131 executable: "_does_not_exist");
130 expect(chrome.onExit, throwsA(new isInstanceOf<ProcessException>())); 132 expect(chrome.onExit, throwsA(new isInstanceOf<ProcessException>()));
131 }); 133 });
132 } 134 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698