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

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

Issue 1097183003: Add an "onPlatform" parameter to test() and group(). (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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/src/runner/vm/isolate_listener.dart ('k') | lib/src/utils.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/runner/vm/isolate_test.dart
diff --git a/lib/src/runner/vm/isolate_test.dart b/lib/src/runner/vm/isolate_test.dart
index 61a74cc30efae9e8491efda489a67a439ef50e35..46b2048f55c207b97eddb1af3b017e9d77789d11 100644
--- a/lib/src/runner/vm/isolate_test.dart
+++ b/lib/src/runner/vm/isolate_test.dart
@@ -16,7 +16,7 @@ import '../../backend/test.dart';
import '../../util/remote_exception.dart';
/// A test in another isolate.
-class IsolateTest implements Test {
+class IsolateTest extends Test {
final String name;
final Metadata metadata;
@@ -81,4 +81,10 @@ class IsolateTest implements Test {
});
return controller.liveTest;
}
+
+ Test change({String name, Metadata metadata}) {
+ if (name == null) name = this.name;
+ if (metadata == null) metadata = this.metadata;
+ return new IsolateTest(name, metadata, _sendPort);
+ }
}
« no previous file with comments | « lib/src/runner/vm/isolate_listener.dart ('k') | lib/src/utils.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698