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

Unified Diff: test/codegen/expect/DeltaBlue.js

Issue 1989663002: fix #470, string interpolation now respects Dart toString (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « test/codegen/expect/BenchmarkBase.js ('k') | test/codegen/expect/async_helper.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/DeltaBlue.js
diff --git a/test/codegen/expect/DeltaBlue.js b/test/codegen/expect/DeltaBlue.js
index 49eaa16fef56d324f9ee6733bbb39d640df92a35..1dee3e0972500c05974509eb5bc6b6dcc672965a 100644
--- a/test/codegen/expect/DeltaBlue.js
+++ b/test/codegen/expect/DeltaBlue.js
@@ -52,7 +52,7 @@ dart_library.library('DeltaBlue', null, /* Imports */[
}
report() {
let score = this.measure();
- core.print(`${this.name}(RunTime): ${score} us.`);
+ core.print(dart.str`${this.name}(RunTime): ${score} us.`);
}
};
dart.setSignature(BenchmarkBase$.BenchmarkBase, {
@@ -532,7 +532,7 @@ dart_library.library('DeltaBlue', null, /* Imports */[
plan.execute();
if (last.value != i) {
core.print("Chain test failed:");
- core.print(`Expected last value to be ${i} but it was ${last.value}.`);
+ core.print(dart.str`Expected last value to be ${i} but it was ${last.value}.`);
}
}
};
@@ -578,12 +578,12 @@ dart_library.library('DeltaBlue', null, /* Imports */[
BenchmarkBase$.Expect = class Expect extends core.Object {
static equals(expected, actual) {
if (!dart.equals(expected, actual)) {
- dart.throw(`Values not equal: ${expected} vs ${actual}`);
+ dart.throw(dart.str`Values not equal: ${expected} vs ${actual}`);
}
}
static listEquals(expected, actual) {
if (expected[dartx.length] != actual[dartx.length]) {
- dart.throw(`Lists have different lengths: ${expected[dartx.length]} vs ${actual[dartx.length]}`);
+ dart.throw(dart.str`Lists have different lengths: ${expected[dartx.length]} vs ${actual[dartx.length]}`);
}
for (let i = 0; i < dart.notNull(actual[dartx.length]); i++) {
BenchmarkBase$.Expect.equals(expected[dartx.get](i), actual[dartx.get](i));
« no previous file with comments | « test/codegen/expect/BenchmarkBase.js ('k') | test/codegen/expect/async_helper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698