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

Side by Side Diff: test/frontend/matcher/throws_test.dart

Issue 1053443002: Rename the package to "test". (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Code review changes 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/frontend/matcher/prints_test.dart ('k') | test/frontend/matcher/throws_type_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 import 'dart:async'; 5 import 'dart:async';
6 6
7 import 'package:unittest/unittest.dart'; 7 import 'package:test/test.dart';
8 8
9 import '../../utils.dart'; 9 import '../../utils.dart';
10 10
11 void main() { 11 void main() {
12 group("synchronous", () { 12 group("synchronous", () {
13 group("[throws]", () { 13 group("[throws]", () {
14 test("with a function that throws an error", () { 14 test("with a function that throws an error", () {
15 expect(() => throw 'oh no', throws); 15 expect(() => throw 'oh no', throws);
16 }); 16 });
17 17
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 test("won't let the test end until the Future completes", () { 140 test("won't let the test end until the Future completes", () {
141 return expectTestBlocks(() { 141 return expectTestBlocks(() {
142 var completer = new Completer(); 142 var completer = new Completer();
143 expect(completer.future, throwsA('oh no')); 143 expect(completer.future, throwsA('oh no'));
144 return completer; 144 return completer;
145 }, (completer) => completer.completeError('oh no')); 145 }, (completer) => completer.completeError('oh no'));
146 }); 146 });
147 }); 147 });
148 }); 148 });
149 } 149 }
OLDNEW
« no previous file with comments | « test/frontend/matcher/prints_test.dart ('k') | test/frontend/matcher/throws_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698