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

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

Issue 2091173002: Add metadata to messages emitted by live tests. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 4 years, 5 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 | « json_reporter.schema.json ('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 import 'dart:async'; 5 import 'dart:async';
6 6
7 import 'package:stack_trace/stack_trace.dart'; 7 import 'package:stack_trace/stack_trace.dart';
8 8
9 import '../backend/group.dart';
10 import '../frontend/expect.dart'; 9 import '../frontend/expect.dart';
11 import '../runner/load_suite.dart'; 10 import '../runner/load_suite.dart';
12 import '../utils.dart'; 11 import '../utils.dart';
13 import 'closed_exception.dart'; 12 import 'closed_exception.dart';
13 import 'group.dart';
14 import 'live_test.dart'; 14 import 'live_test.dart';
15 import 'live_test_controller.dart'; 15 import 'live_test_controller.dart';
16 import 'message.dart';
16 import 'metadata.dart'; 17 import 'metadata.dart';
17 import 'operating_system.dart'; 18 import 'operating_system.dart';
18 import 'outstanding_callback_counter.dart'; 19 import 'outstanding_callback_counter.dart';
19 import 'state.dart'; 20 import 'state.dart';
20 import 'suite.dart'; 21 import 'suite.dart';
21 import 'test.dart'; 22 import 'test.dart';
22 import 'test_platform.dart'; 23 import 'test_platform.dart';
23 24
24 /// A test in this isolate. 25 /// A test in this isolate.
25 class LocalTest extends Test { 26 class LocalTest extends Test {
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 296
296 _controller.completer.complete(); 297 _controller.completer.complete();
297 }, zoneValues: { 298 }, zoneValues: {
298 #test.invoker: this, 299 #test.invoker: this,
299 // Use the invoker as a key so that multiple invokers can have different 300 // Use the invoker as a key so that multiple invokers can have different
300 // outstanding callback counters at once. 301 // outstanding callback counters at once.
301 _counterKey: outstandingCallbacksForBody, 302 _counterKey: outstandingCallbacksForBody,
302 _closableKey: true 303 _closableKey: true
303 }, 304 },
304 zoneSpecification: new ZoneSpecification( 305 zoneSpecification: new ZoneSpecification(
305 print: (self, parent, zone, line) => _controller.print(line)), 306 print: (self, parent, zone, line) =>
307 _controller.message(new Message.print(line))),
306 onError: _handleError); 308 onError: _handleError);
307 }); 309 });
308 } 310 }
309 } 311 }
OLDNEW
« no previous file with comments | « json_reporter.schema.json ('k') | lib/src/backend/live_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698