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

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

Issue 1034273003: fix for static methods and names banned in strict mode (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 years, 9 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 | « lib/src/utils.dart ('k') | test/codegen/expect/DeltaBlue.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/codegen/expect/BenchmarkBase.js
diff --git a/test/codegen/expect/BenchmarkBase.js b/test/codegen/expect/BenchmarkBase.js
index a088173cbc1fc5d824b48f9172874db007b2637f..f390d70c7cd2b3a0d4f33fedbd9cd98ee28e4e91 100644
--- a/test/codegen/expect/BenchmarkBase.js
+++ b/test/codegen/expect/BenchmarkBase.js
@@ -12,7 +12,7 @@ var BenchmarkBase;
throw `Lists have different lengths: ${expected.length} vs ${actual.length}`;
}
for (let i = 0; dart.notNull(i) < dart.notNull(actual.length); i = dart.notNull(i) + 1) {
- equals(expected.get(i), actual.get(i));
+ Expect.equals(expected.get(i), actual.get(i));
}
}
fail(message) {
@@ -49,10 +49,10 @@ var BenchmarkBase;
}
measure() {
this.setup();
- measureFor((() => {
+ BenchmarkBase.measureFor((() => {
this.warmup();
}).bind(this), 100);
- let result = measureFor((() => {
+ let result = BenchmarkBase.measureFor((() => {
this.exercise();
}).bind(this), 2000);
this.teardown();
« no previous file with comments | « lib/src/utils.dart ('k') | test/codegen/expect/DeltaBlue.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698