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

Unified Diff: pkg/scheduled_test/lib/src/descriptor/pattern_descriptor.dart

Issue 14070010: Refactor Future constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added co19 issue number. Created 7 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: pkg/scheduled_test/lib/src/descriptor/pattern_descriptor.dart
diff --git a/pkg/scheduled_test/lib/src/descriptor/pattern_descriptor.dart b/pkg/scheduled_test/lib/src/descriptor/pattern_descriptor.dart
index 1c2245961e0bf335146df46906b31ab45c4eb3e3..7eb0c61ebf4c099c95c77c7467bc4b0a5dea2ccd 100644
--- a/pkg/scheduled_test/lib/src/descriptor/pattern_descriptor.dart
+++ b/pkg/scheduled_test/lib/src/descriptor/pattern_descriptor.dart
@@ -110,7 +110,7 @@ class PatternDescriptor extends Descriptor {
return '/${regExp.pattern}/$flags';
}
- Future create([String parent]) => new Future.immediateError(
+ Future create([String parent]) => new Future.error(
new UnsupportedError("Pattern descriptors don't support create()."));
Stream<List<int>> load(String pathToLoad) => errorStream(
« no previous file with comments | « pkg/scheduled_test/lib/src/descriptor/nothing_descriptor.dart ('k') | pkg/scheduled_test/lib/src/mock_clock.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698