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

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

Issue 1561073003: Support re-running tests while debugging. (Closed) Base URL: git@github.com:dart-lang/test@debugger-wip
Patch Set: Code review changes Created 4 years, 11 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 | « CHANGELOG.md ('k') | lib/src/runner.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/backend/live_test.dart
diff --git a/lib/src/backend/live_test.dart b/lib/src/backend/live_test.dart
index 00b0d11cf2a748bac3dac79410b59be89de4d114..60dc3699e3f1f101b62f5bde5b647ee12ee1d5e3 100644
--- a/lib/src/backend/live_test.dart
+++ b/lib/src/backend/live_test.dart
@@ -115,6 +115,9 @@ abstract class LiveTest {
return test.name.substring(group.name.length + 1);
}
+ /// Loads a copy of this [LiveTest] that's able to be run again.
+ LiveTest copy() => test.load(suite, groups: groups);
+
/// Signals that this test should start running as soon as possible.
///
/// A test may not start running immediately for various reasons specific to
« no previous file with comments | « CHANGELOG.md ('k') | lib/src/runner.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698