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

Unified Diff: test/codegen_expected/language/call_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/call_test.js
diff --git a/test/codegen_expected/language/call_test.js b/test/codegen_expected/language/call_test.js
index 7451df34d26a0183ee2fdfe07b48adbbd2de454a..dcb4c1f9232a34c9d293d50b565a1fa8cb0b58aa 100644
--- a/test/codegen_expected/language/call_test.js
+++ b/test/codegen_expected/language/call_test.js
@@ -8,17 +8,16 @@ dart_library.library('language/call_test', null, /* Imports */[
const dartx = dart_sdk.dartx;
const expect$ = expect.expect;
const call_test = Object.create(null);
- let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic])))();
- let __Todynamic = () => (__Todynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [], [dart.dynamic])))();
- let __Todynamic$ = () => (__Todynamic$ = dart.constFn(dart.definiteFunctionType(dart.dynamic, [], {x: dart.dynamic, y: dart.dynamic})))();
- let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [])))();
let dynamicTobool = () => (dynamicTobool = dart.constFn(dart.definiteFunctionType(core.bool, [dart.dynamic])))();
+ let __Tobool = () => (__Tobool = dart.constFn(dart.definiteFunctionType(core.bool, [], [dart.dynamic])))();
+ let __ToString = () => (__ToString = dart.constFn(dart.definiteFunctionType(core.String, [], {x: dart.dynamic, y: dart.dynamic})))();
+ let VoidTovoid = () => (VoidTovoid = dart.constFn(dart.definiteFunctionType(dart.void, [])))();
let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
call_test.main = function() {
function bar(a) {
return typeof a == 'string';
}
- dart.fn(bar, dynamicTodynamic());
+ dart.fn(bar, dynamicTobool());
for (let i = 0; i < 20; i++) {
expect$.Expect.isFalse(bar(1));
expect$.Expect.isTrue(dart.dsend(bar, 'call', 'foo'));
@@ -27,7 +26,7 @@ dart_library.library('language/call_test', null, /* Imports */[
if (a === void 0) a = "a";
return typeof a == 'string';
}
- dart.fn(opt_arg, __Todynamic());
+ dart.fn(opt_arg, __Tobool());
for (let i = 0; i < 20; i++) {
expect$.Expect.isFalse(opt_arg(1));
expect$.Expect.isFalse(dart.dsend(opt_arg, 'call', 1));
@@ -41,7 +40,7 @@ dart_library.library('language/call_test', null, /* Imports */[
let y = opts && 'y' in opts ? opts.y : 22;
return dart.str`${x}${y}`;
}
- dart.fn(named_arg, __Todynamic$());
+ dart.fn(named_arg, __ToString());
for (let i = 0; i < 20; i++) {
expect$.Expect.equals("1122", named_arg());
expect$.Expect.equals("1122", dart.dsend(named_arg, 'call'));
« no previous file with comments | « test/codegen_expected/language/call_closurization_test.js ('k') | test/codegen_expected/language/cascade_precedence_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698