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

Unified Diff: test/codegen_expected/language/async_star_await_pauses_test.js

Issue 2214263005: Mark recursive_inheritance_test as passing (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Bumped pubspec Created 4 years, 4 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: test/codegen_expected/language/async_star_await_pauses_test.js
diff --git a/test/codegen_expected/language/async_star_await_pauses_test.js b/test/codegen_expected/language/async_star_await_pauses_test.js
index 276e8e941c34cf024f6bcb9ba5d875c7acb9a05e..cad3bac381466412818d3d2ea14bcaa78d607fab 100644
--- a/test/codegen_expected/language/async_star_await_pauses_test.js
+++ b/test/codegen_expected/language/async_star_await_pauses_test.js
@@ -11,9 +11,11 @@ dart_library.library('language/async_star_await_pauses_test', null, /* Imports *
const async_helper$ = async_helper.async_helper;
const expect$ = expect.expect;
const async_star_await_pauses_test = Object.create(null);
+ let FutureOfint = () => (FutureOfint = dart.constFn(async.Future$(core.int)))();
let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [])))();
let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
- let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic])))();
+ let dynamicToFutureOfint = () => (dynamicToFutureOfint = dart.constFn(dart.definiteFunctionType(FutureOfint(), [dart.dynamic])))();
+ let intTodynamic = () => (intTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [core.int])))();
async_star_await_pauses_test.main = function() {
let sc = null;
let i = 0;
@@ -39,14 +41,14 @@ dart_library.library('language/async_star_await_pauses_test', null, /* Imports *
yield it.cancel();
}
return r;
- }, dart.dynamic, s);
+ }, core.int, s);
}
- dart.fn(f, dynamicTodynamic());
+ dart.fn(f, dynamicToFutureOfint());
async_helper$.asyncStart();
- dart.dsend(f(dart.dload(sc, 'stream')), 'then', dart.fn(v => {
+ f(dart.dload(sc, 'stream')).then(dart.dynamic)(dart.fn(v => {
expect$.Expect.equals(10, v);
async_helper$.asyncEnd();
- }, dynamicTodynamic()));
+ }, intTodynamic()));
};
dart.fn(async_star_await_pauses_test.main, VoidTodynamic());
// Exports:

Powered by Google App Engine
This is Rietveld 408576698