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

Unified Diff: pkg/scheduled_test/lib/scheduled_test.dart

Issue 12637020: Display metadata about out-of-band callbacks in scheduled test errors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: mege Created 7 years, 9 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: pkg/scheduled_test/lib/scheduled_test.dart
diff --git a/pkg/scheduled_test/lib/scheduled_test.dart b/pkg/scheduled_test/lib/scheduled_test.dart
index 6ae8449c56b0b626b760af07c7417ebc493f9221..a65731ab1792f0eb58db91a0a8abc4a61dfea485 100644
--- a/pkg/scheduled_test/lib/scheduled_test.dart
+++ b/pkg/scheduled_test/lib/scheduled_test.dart
@@ -317,13 +317,13 @@ void _setUpScheduledTest([void setUpFn()]) {
/// initialized.
void _ensureInitialized() {
unittest.ensureInitialized();
- unittest.wrapAsync = (f, [id = '']) {
+ unittest.wrapAsync = (f, [description]) {
if (currentSchedule == null) {
throw new StateError("Unexpected call to wrapAsync with no current "
"schedule.");
}
- return currentSchedule.wrapAsync(f);
+ return currentSchedule.wrapAsync(f, description);
};
}

Powered by Google App Engine
This is Rietveld 408576698