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

Side by Side Diff: test/runner/isolate_listener_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/runner/engine_test.dart ('k') | test/runner/loader_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 import 'dart:isolate'; 8 import 'dart:isolate';
9 9
10 import 'package:unittest/src/backend/invoker.dart'; 10 import 'package:test/src/backend/invoker.dart';
11 import 'package:unittest/src/backend/live_test.dart'; 11 import 'package:test/src/backend/live_test.dart';
12 import 'package:unittest/src/backend/metadata.dart'; 12 import 'package:test/src/backend/metadata.dart';
13 import 'package:unittest/src/backend/state.dart'; 13 import 'package:test/src/backend/state.dart';
14 import 'package:unittest/src/backend/suite.dart'; 14 import 'package:test/src/backend/suite.dart';
15 import 'package:unittest/src/runner/vm/isolate_listener.dart'; 15 import 'package:test/src/runner/vm/isolate_listener.dart';
16 import 'package:unittest/src/runner/vm/isolate_test.dart'; 16 import 'package:test/src/runner/vm/isolate_test.dart';
17 import 'package:unittest/src/util/io.dart'; 17 import 'package:test/src/util/io.dart';
18 import 'package:unittest/src/util/remote_exception.dart'; 18 import 'package:test/src/util/remote_exception.dart';
19 import 'package:unittest/unittest.dart'; 19 import 'package:test/test.dart';
20 20
21 import '../utils.dart'; 21 import '../utils.dart';
22 22
23 /// An isolate that's been spun up for the current test. 23 /// An isolate that's been spun up for the current test.
24 /// 24 ///
25 /// This is tracked so that it can be killed once the test is done. 25 /// This is tracked so that it can be killed once the test is done.
26 Isolate _isolate; 26 Isolate _isolate;
27 27
28 /// A live test that's running for the current test. 28 /// A live test that's running for the current test.
29 /// 29 ///
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 /// An isolate entrypoint that defines a test that prints twice. 393 /// An isolate entrypoint that defines a test that prints twice.
394 void _printTest(SendPort sendPort) { 394 void _printTest(SendPort sendPort) {
395 IsolateListener.start(sendPort, () => () { 395 IsolateListener.start(sendPort, () => () {
396 test("prints", () { 396 test("prints", () {
397 print("Hello,"); 397 print("Hello,");
398 return new Future(() => print("world!")); 398 return new Future(() => print("world!"));
399 }); 399 });
400 }); 400 });
401 } 401 }
402 402
OLDNEW
« no previous file with comments | « test/runner/engine_test.dart ('k') | test/runner/loader_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698