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

Unified Diff: test/codegen_expected/language/async_star_regression_2238_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_2238_test.js
diff --git a/test/codegen_expected/language/async_star_regression_2238_test.js b/test/codegen_expected/language/async_star_regression_2238_test.js
index 0a4ef08ffa1d026173b386e2291365b85d39626e..156bdaf8f87b8db44632822b543f5b76950edfa9 100644
--- a/test/codegen_expected/language/async_star_regression_2238_test.js
+++ b/test/codegen_expected/language/async_star_regression_2238_test.js
@@ -5,15 +5,19 @@ dart_library.library('language/async_star_regression_2238_test', null, /* Import
], function load__async_star_regression_2238_test(exports, dart_sdk, async_helper, expect) {
'use strict';
const core = dart_sdk.core;
+ const async = dart_sdk.async;
const _interceptors = dart_sdk._interceptors;
const dart = dart_sdk.dart;
const dartx = dart_sdk.dartx;
const async_helper$ = async_helper.async_helper;
const expect$ = expect.expect;
const async_star_regression_2238_test = Object.create(null);
+ let StreamOfint = () => (StreamOfint = dart.constFn(async.Stream$(core.int)))();
let JSArrayOfint = () => (JSArrayOfint = dart.constFn(_interceptors.JSArray$(core.int)))();
+ let ListOfint = () => (ListOfint = dart.constFn(core.List$(core.int)))();
+ let VoidToStreamOfint = () => (VoidToStreamOfint = dart.constFn(dart.definiteFunctionType(StreamOfint(), [])))();
+ let ListOfintTodynamic = () => (ListOfintTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [ListOfint()])))();
let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
- let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic])))();
async_star_regression_2238_test.main = function() {
function f() {
return dart.asyncStar(function*(stream) {
@@ -22,14 +26,14 @@ dart_library.library('language/async_star_regression_2238_test', null, /* Import
if (stream.add(0)) return;
yield;
}
- }, dart.dynamic);
+ }, core.int);
}
- dart.fn(f, VoidTodynamic());
+ dart.fn(f, VoidToStreamOfint());
async_helper$.asyncStart();
- dart.dsend(dart.dsend(f(), 'toList'), 'then', dart.fn(list => {
- expect$.Expect.listEquals(JSArrayOfint().of([0]), core.List._check(list));
+ f().toList().then(dart.dynamic)(dart.fn(list => {
+ expect$.Expect.listEquals(JSArrayOfint().of([0]), list);
async_helper$.asyncEnd();
- }, dynamicTodynamic()));
+ }, ListOfintTodynamic()));
};
dart.fn(async_star_regression_2238_test.main, VoidTodynamic());
// Exports:

Powered by Google App Engine
This is Rietveld 408576698