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

Unified Diff: pkg/scheduled_test/test/descriptor/async_test.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
« no previous file with comments | « pkg/scheduled_test/lib/src/utils.dart ('k') | pkg/scheduled_test/test/scheduled_test/simple_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/scheduled_test/test/descriptor/async_test.dart
diff --git a/pkg/scheduled_test/test/descriptor/async_test.dart b/pkg/scheduled_test/test/descriptor/async_test.dart
index b35718fa15dac27dfe947e0aeb985d8e02b6f1df..1726345cdae091efca0ffdf1b6663f30087d01cf 100644
--- a/pkg/scheduled_test/test/descriptor/async_test.dart
+++ b/pkg/scheduled_test/test/descriptor/async_test.dart
@@ -126,7 +126,7 @@ void main() {
test('test', () {
scheduleSandbox();
- expect(d.async(new Future.immediate(d.file('name.txt')))
+ expect(d.async(new Future.value(d.file('name.txt')))
.load('path').toList(),
throwsA(equals("AsyncDescriptors don't support load().")));
});
@@ -136,7 +136,7 @@ void main() {
test('test', () {
scheduleSandbox();
- expect(d.async(new Future.immediate(d.file('name.txt'))).read().toList(),
+ expect(d.async(new Future.value(d.file('name.txt'))).read().toList(),
throwsA(equals("AsyncDescriptors don't support read().")));
});
});
« no previous file with comments | « pkg/scheduled_test/lib/src/utils.dart ('k') | pkg/scheduled_test/test/scheduled_test/simple_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698