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

Unified Diff: test/codegen_expected/language/async_star_regression_fisk_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_regression_fisk_test.js
diff --git a/test/codegen_expected/language/async_star_regression_fisk_test.js b/test/codegen_expected/language/async_star_regression_fisk_test.js
index 8d15edbc11a566a8f5eba46c0821e4645d9c5492..288b488be028f1729e8fb1195b4d294375864b99 100644
--- a/test/codegen_expected/language/async_star_regression_fisk_test.js
+++ b/test/codegen_expected/language/async_star_regression_fisk_test.js
@@ -14,8 +14,10 @@ dart_library.library('language/async_star_regression_fisk_test', null, /* Import
const async_star_regression_fisk_test = Object.create(null);
let JSArrayOfObject = () => (JSArrayOfObject = dart.constFn(_interceptors.JSArray$(core.Object)))();
let VoidToint = () => (VoidToint = dart.constFn(dart.definiteFunctionType(core.int, [])))();
+ let VoidToStream = () => (VoidToStream = dart.constFn(dart.definiteFunctionType(async.Stream, [])))();
+ let intToFuture = () => (intToFuture = dart.constFn(dart.definiteFunctionType(async.Future, [core.int])))();
let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
- let intTodynamic = () => (intTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [core.int])))();
+ let VoidToFuture = () => (VoidToFuture = dart.constFn(dart.definiteFunctionType(async.Future, [])))();
async_star_regression_fisk_test.main = function() {
let res = [];
function fisk() {
@@ -31,12 +33,12 @@ dart_library.library('language/async_star_regression_fisk_test', null, /* Import
}
}, dart.dynamic);
}
- dart.fn(fisk, VoidTodynamic());
+ dart.fn(fisk, VoidToStream());
function fugl(count) {
return dart.async(function*(count) {
res[dartx.add](dart.str`fisk ${count}`);
try {
- let it = async.StreamIterator.new(async.Stream._check(dart.dsend(fisk(), 'take', count)));
+ let it = async.StreamIterator.new(fisk().take(count));
try {
while (yield it.moveNext()) {
let i = it.current;
@@ -51,9 +53,9 @@ dart_library.library('language/async_star_regression_fisk_test', null, /* Import
}
}, dart.dynamic, count);
}
- dart.fn(fugl, intTodynamic());
+ dart.fn(fugl, intToFuture());
async_helper$.asyncStart();
- dart.dsend(dart.dsend(dart.dsend(fugl(3), 'whenComplete', dart.fn(() => fugl(2), VoidTodynamic())), 'whenComplete', dart.fn(() => fugl(1), VoidTodynamic())), 'whenComplete', dart.fn(() => {
+ fugl(3).whenComplete(dart.fn(() => fugl(2), VoidToFuture())).whenComplete(dart.fn(() => fugl(1), VoidToFuture())).whenComplete(dart.fn(() => {
expect$.Expect.listEquals(JSArrayOfObject().of(["fisk 3", "+fisk", 0, 1, "-fisk", "done", "fisk 2", "+fisk", 0, 1, "-fisk", "done", "fisk 1", "+fisk", 0, "-fisk", "done"]), res);
async_helper$.asyncEnd();
}, VoidTodynamic()));

Powered by Google App Engine
This is Rietveld 408576698