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

Side by Side Diff: pkg/scheduled_test/test/metatest.dart

Issue 12782016: Switch pkg packages, pub, and dartdoc to use package: imports. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Code review changes. Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 /// A test library for testing test libraries? We must go deeper. 5 /// A test library for testing test libraries? We must go deeper.
6 /// 6 ///
7 /// Since unit testing code tends to use a lot of global state, it can be tough 7 /// Since unit testing code tends to use a lot of global state, it can be tough
8 /// to test. This library manages it by running each test case in a child 8 /// to test. This library manages it by running each test case in a child
9 /// isolate, then reporting the results back to the parent isolate. 9 /// isolate, then reporting the results back to the parent isolate.
10 library metatest; 10 library metatest;
11 11
12 import 'dart:io'; 12 import 'dart:io';
13 import 'dart:async'; 13 import 'dart:async';
14 import 'dart:isolate'; 14 import 'dart:isolate';
15 15
16 import '../../../pkg/pathos/lib/path.dart' as path; 16 import 'package:pathos/path.dart' as path;
17 import '../../../pkg/unittest/lib/unittest.dart'; 17 import 'package:unittest/unittest.dart';
18 18
19 import 'utils.dart'; 19 import 'utils.dart';
20 20
21 // TODO(nweiz): get rid of this once issue 8863 is fixed. 21 // TODO(nweiz): get rid of this once issue 8863 is fixed.
22 /// The path to the Dart executable. This is only set in a child isolate. 22 /// The path to the Dart executable. This is only set in a child isolate.
23 String get dartExecutable => _executable; 23 String get dartExecutable => _executable;
24 String _executable; 24 String _executable;
25 25
26 /// Declares a test with the given [description] and [body]. [body] corresponds 26 /// Declares a test with the given [description] and [body]. [body] corresponds
27 /// to the `main` method of a test file, and will be run in an isolate. By 27 /// to the `main` method of a test file, and will be run in an isolate. By
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 "message": testCase.message, 208 "message": testCase.message,
209 "result": testCase.result, 209 "result": testCase.result,
210 "stackTrace": testCase.stackTrace 210 "stackTrace": testCase.stackTrace
211 }).toList() 211 }).toList()
212 }); 212 });
213 } 213 }
214 214
215 void onInit() {} 215 void onInit() {}
216 void onDone(bool success) {} 216 void onDone(bool success) {}
217 } 217 }
OLDNEW
« no previous file with comments | « pkg/scheduled_test/test/descriptor_test.dart ('k') | pkg/scheduled_test/test/scheduled_process_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698