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

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

Issue 26151002: Rename runAsync to scheduleMicrotask. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add test. Created 7 years, 2 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: tests/lib/async/zone_debug_test.dart
diff --git a/tests/lib/async/zone_debug_test.dart b/tests/lib/async/zone_debug_test.dart
index 3d41edbef15dbdcfe38e7efce5bd1401114e7c5d..fca0a5ea459d997577185e5e1a5d4d369d5f84b5 100644
--- a/tests/lib/async/zone_debug_test.dart
+++ b/tests/lib/async/zone_debug_test.dart
@@ -79,10 +79,10 @@ main() {
openTests++;
forked.run(() {
int forkTrace = stackTrace;
- runAsync(() {
- int runAsyncTrace = stackTrace;
- runAsync(() {
- expectedDebugTrace = [runAsyncTrace, forkTrace];
+ scheduleMicrotask(() {
+ int scheduleMicrotaskTrace = stackTrace;
+ scheduleMicrotask(() {
+ expectedDebugTrace = [scheduleMicrotaskTrace, forkTrace];
openTests--;
if (openTests == 0) {
done.complete();
@@ -112,7 +112,7 @@ main() {
if (openTests == 0) {
done.complete();
}
- runAsync(() {
+ scheduleMicrotask(() {
expectedDebugTrace = [fork3Trace, fork2Trace, globalTrace];
throw "gee";
});
« no previous file with comments | « tests/lib/async/stream_event_transformed_test.dart ('k') | tests/lib/async/zone_empty_description_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698