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

Unified Diff: tests/lib/async/run_zoned1_test.dart

Issue 17098007: Reapply "Zone support for Futures, Timer, Streams." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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 | « tests/lib/async/catch_errors_test.dart ('k') | tests/lib/async/run_zoned2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/async/run_zoned1_test.dart
diff --git a/tests/language/closure_in_field_initializer_test.dart b/tests/lib/async/run_zoned1_test.dart
similarity index 64%
copy from tests/language/closure_in_field_initializer_test.dart
copy to tests/lib/async/run_zoned1_test.dart
index bf0198aa4b3ae78e6ad50f19e4e08a573daf80d4..71af2346c69ce7add4f4f8c5b030b2ca02385c73 100644
--- a/tests/language/closure_in_field_initializer_test.dart
+++ b/tests/lib/async/run_zoned1_test.dart
@@ -3,14 +3,9 @@
// BSD-style license that can be found in the LICENSE file.
import "package:expect/expect.dart";
-
-class Foo {
- var closures = {
- 'a': (x, y) => x + y
- };
-}
+import 'dart:async';
main() {
- var closures = new Foo().closures;
- Expect.equals(6, closures['a'](4, 2));
+ // Make sure `runZoned` returns the result of a synchronous call.
+ Expect.equals(499, runZonedExperimental(() => 499));
}
« no previous file with comments | « tests/lib/async/catch_errors_test.dart ('k') | tests/lib/async/run_zoned2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698