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

Unified Diff: test/codegen_expected/language/string_interpolate2_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/string_interpolate2_test.js
diff --git a/test/codegen_expected/language/string_interpolate2_test.js b/test/codegen_expected/language/string_interpolate2_test.js
index 42468d5b60c5a582b175785d427f9dbf927db176..472f5f70bcc5b9043e0ea358b05339703e49f790 100644
--- a/test/codegen_expected/language/string_interpolate2_test.js
+++ b/test/codegen_expected/language/string_interpolate2_test.js
@@ -11,8 +11,8 @@ dart_library.library('language/string_interpolate2_test', null, /* Imports */[
const string_interpolate2_test = Object.create(null);
let JSArrayOfint = () => (JSArrayOfint = dart.constFn(_interceptors.JSArray$(core.int)))();
let dynamicTodynamic = () => (dynamicTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [dart.dynamic])))();
- let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
let VoidToString = () => (VoidToString = dart.constFn(dart.definiteFunctionType(core.String, [])))();
+ let VoidTodynamic = () => (VoidTodynamic = dart.constFn(dart.definiteFunctionType(dart.dynamic, [])))();
string_interpolate2_test.StringInterpolate2Test = class StringInterpolate2Test extends core.Object {
static testMain() {
string_interpolate2_test.StringInterpolate2Test.F1 = dart.str`1 + 5 = ${1 + 5}`;
@@ -24,7 +24,7 @@ dart_library.library('language/string_interpolate2_test', null, /* Imports */[
s = dart.str`fib(${i}) = ${fib[dartx.get](i)}`;
expect$.Expect.equals("fib(5) = 8", s);
i = 5;
- s = dart.str`${i} squared is ${dart.dcall(dart.fn(x => dart.dsend(x, '*', x), dynamicTodynamic()), i)}`;
+ s = dart.str`${i} squared is ${dart.fn(x => dart.dsend(x, '*', x), dynamicTodynamic())(i)}`;
expect$.Expect.equals("5 squared is 25", s);
expect$.Expect.equals("8", dart.str`${fib[dartx.length]}`);
expect$.Expect.equals("8", dart.str`${fib[dartx.length]}`);
@@ -36,7 +36,7 @@ dart_library.library('language/string_interpolate2_test', null, /* Imports */[
function b() {
return dart.str`${++i}`;
}
- dart.fn(b, VoidTodynamic());
+ dart.fn(b, VoidToString());
s = dart.str`aaa ${dart.str`bbb ${b()} bbb`} aaa ${b()}`;
expect$.Expect.equals("aaa bbb 1 bbb aaa 2", s);
s = dart.str`a ${dart.fn(() => dart.str`b ${dart.fn(() => "c", VoidToString())()}`, VoidToString())()} d`;
« no previous file with comments | « test/codegen_expected/language/regress_21016_test.js ('k') | test/codegen_expected/language/syncstar_less_than_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698