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

Unified Diff: lib/src/backend/invoker.dart

Issue 1097183003: Add an "onPlatform" parameter to test() and group(). (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: 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
Index: lib/src/backend/invoker.dart
diff --git a/lib/src/backend/invoker.dart b/lib/src/backend/invoker.dart
index 2ff1772586e65839d88e5f71b615637a1b6fe097..81a931e4eec7e2315f5df21b9b3daedc69294847 100644
--- a/lib/src/backend/invoker.dart
+++ b/lib/src/backend/invoker.dart
@@ -42,6 +42,12 @@ class LocalTest implements Test {
var invoker = new Invoker._(suite, this);
return invoker.liveTest;
}
+
+ Test change({String name, Metadata metadata}) {
kevmoo 2015/04/20 22:42:30 docs?
nweiz 2015/04/20 22:57:53 Done (in Test).
+ if (name == null) name = this.name;
+ if (metadata == null) metadata = this.metadata;
+ return new LocalTest(name, metadata, _body, tearDown: _tearDown);
+ }
}
/// The class responsible for managing the lifecycle of a single local test.

Powered by Google App Engine
This is Rietveld 408576698