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

Side by Side Diff: lib/src/backend/invoker.dart

Issue 955543002: Move a bunch of src/ files into subdirectories. (Closed) Base URL: git@github.com:dart-lang/unittest@master
Patch Set: Fix library tags Created 5 years, 10 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 | « lib/src/backend/group.dart ('k') | lib/src/backend/live_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 library unittest.invoker; 5 library unittest.backend.invoker;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 8
9 import 'package:stack_trace/stack_trace.dart'; 9 import 'package:stack_trace/stack_trace.dart';
10 10
11 import 'expect.dart'; 11 import '../frontend/expect.dart';
12 import '../utils.dart';
12 import 'live_test.dart'; 13 import 'live_test.dart';
13 import 'live_test_controller.dart'; 14 import 'live_test_controller.dart';
14 import 'state.dart'; 15 import 'state.dart';
15 import 'suite.dart'; 16 import 'suite.dart';
16 import 'test.dart'; 17 import 'test.dart';
17 import 'utils.dart';
18 18
19 /// A test in this isolate. 19 /// A test in this isolate.
20 class LocalTest implements Test { 20 class LocalTest implements Test {
21 /// The name of the test. 21 /// The name of the test.
22 final String name; 22 final String name;
23 23
24 /// The test body. 24 /// The test body.
25 final AsyncFunction _body; 25 final AsyncFunction _body;
26 26
27 /// The callback used to clean up after the test. 27 /// The callback used to clean up after the test.
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 new State(Status.complete, liveTest.state.result)); 174 new State(Status.complete, liveTest.state.result));
175 175
176 // Use [Timer.run] here to avoid starving the DOM or other 176 // Use [Timer.run] here to avoid starving the DOM or other
177 // non-microtask events. 177 // non-microtask events.
178 Timer.run(_controller.completer.complete); 178 Timer.run(_controller.completer.complete);
179 }); 179 });
180 }, zoneValues: {#unittest.invoker: this}, onError: handleError); 180 }, zoneValues: {#unittest.invoker: this}, onError: handleError);
181 }); 181 });
182 } 182 }
183 } 183 }
OLDNEW
« no previous file with comments | « lib/src/backend/group.dart ('k') | lib/src/backend/live_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698