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

Unified Diff: lib/src/runner/vm/isolate_listener.dart

Issue 1086213002: Support a @Timeout annotation. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: CHANGELOG + README 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/runner/parse_metadata.dart ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/runner/vm/isolate_listener.dart
diff --git a/lib/src/runner/vm/isolate_listener.dart b/lib/src/runner/vm/isolate_listener.dart
index 46c05f2592c70c8e09abdd8a61609a80ec76da1e..b40140e7b38d06c3736b257fcef63e575d513284 100644
--- a/lib/src/runner/vm/isolate_listener.dart
+++ b/lib/src/runner/vm/isolate_listener.dart
@@ -8,6 +8,7 @@ import 'dart:isolate';
import 'dart:async';
import '../../backend/declarer.dart';
+import '../../backend/metadata.dart';
import '../../backend/suite.dart';
import '../../backend/test.dart';
import '../../util/remote_exception.dart';
@@ -27,7 +28,9 @@ class IsolateListener {
///
/// Once that's done, this starts listening for commands about which tests to
/// run.
- static void start(SendPort sendPort, Function getMain()) {
+ ///
+ /// [metadata] is the suite-level metadata defined at the top of the file.
+ static void start(SendPort sendPort, Metadata metadata, Function getMain()) {
var main;
try {
main = getMain();
@@ -56,7 +59,8 @@ class IsolateListener {
return;
}
- new IsolateListener._(new Suite(declarer.tests))._listen(sendPort);
+ new IsolateListener._(new Suite(declarer.tests, metadata: metadata))
+ ._listen(sendPort);
}
/// Sends a message over [sendPort] indicating that the tests failed to load.
« no previous file with comments | « lib/src/runner/parse_metadata.dart ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698