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

Unified Diff: test/codegen_expected/language/async_star_stream_take_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_stream_take_test.js
diff --git a/test/codegen_expected/language/async_star_stream_take_test.js b/test/codegen_expected/language/async_star_stream_take_test.js
index 7a89e586ea06f804c84fe698d6223ccf9be7b9f6..b92ed9f0326332ee4d02fb7e76ef64344a6e5179 100644
--- a/test/codegen_expected/language/async_star_stream_take_test.js
+++ b/test/codegen_expected/language/async_star_stream_take_test.js
@@ -11,9 +11,10 @@ dart_library.library('language/async_star_stream_take_test', null, /* Imports */
const async_helper$ = async_helper.async_helper;
const expect$ = expect.expect;
const async_star_stream_take_test = Object.create(null);
+ let FutureOfint = () => (FutureOfint = dart.constFn(async.Future$(core.int)))();
let intToStream = () => (intToStream = dart.constFn(dart.definiteFunctionType(async.Stream, [core.int])))();
- let StreamTodynamic = () => (StreamTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [async.Stream])))();
- let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic])))();
+ let StreamToFutureOfint = () => (StreamToFutureOfint = dart.constFn(dart.definiteFunctionType(FutureOfint(), [async.Stream])))();
+ let intTodynamic = () => (intTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [core.int])))();
let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
async_star_stream_take_test.makeStream = function(n) {
return dart.asyncStar(function*(stream, n) {
@@ -38,14 +39,14 @@ dart_library.library('language/async_star_stream_take_test', null, /* Imports */
yield it.cancel();
}
return r;
- }, dart.dynamic, s);
+ }, core.int, s);
}
- dart.fn(f, StreamTodynamic());
+ dart.fn(f, StreamToFutureOfint());
async_helper$.asyncStart();
- dart.dsend(f(async_star_stream_take_test.makeStream(10)), 'then', dart.fn(v => {
+ f(async_star_stream_take_test.makeStream(10)).then(dart.dynamic)(dart.fn(v => {
expect$.Expect.equals(10, v);
async_helper$.asyncEnd();
- }, dynamicTodynamic()));
+ }, intTodynamic()));
};
dart.fn(async_star_stream_take_test.main, VoidTodynamic());
// Exports:

Powered by Google App Engine
This is Rietveld 408576698