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

Side by Side Diff: test/codegen/expect/BenchmarkBase/BenchmarkBase.js

Issue 967713002: fixes #69, avoid module name inside module scope (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 unified diff | Download patch
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | test/codegen/expect/DeltaBlue/DeltaBlue.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 var BenchmarkBase; 1 var BenchmarkBase;
2 (function(BenchmarkBase) { 2 (function(exports) {
3 'use strict'; 3 'use strict';
4 class Expect extends dart.Object { 4 class Expect extends dart.Object {
5 static equals(expected, actual) { 5 static equals(expected, actual) {
6 if (!dart.equals(expected, actual)) { 6 if (!dart.equals(expected, actual)) {
7 throw `Values not equal: ${expected} vs ${actual}`; 7 throw `Values not equal: ${expected} vs ${actual}`;
8 } 8 }
9 } 9 }
10 static listEquals(expected, actual) { 10 static listEquals(expected, actual) {
11 if (expected.length !== actual.length) { 11 if (expected.length !== actual.length) {
12 throw `Lists have different lengths: ${expected.length} vs ${actual.leng th}`; 12 throw `Lists have different lengths: ${expected.length} vs ${actual.leng th}`;
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 }).bind(this), 2000); 57 }).bind(this), 2000);
58 this.teardown(); 58 this.teardown();
59 return result; 59 return result;
60 } 60 }
61 report() { 61 report() {
62 let score = this.measure(); 62 let score = this.measure();
63 core.print(`${this.name}(RunTime): ${score} us.`); 63 core.print(`${this.name}(RunTime): ${score} us.`);
64 } 64 }
65 } 65 }
66 // Exports: 66 // Exports:
67 BenchmarkBase.Expect = Expect; 67 exports.Expect = Expect;
68 BenchmarkBase.BenchmarkBase = BenchmarkBase; 68 exports.BenchmarkBase = BenchmarkBase;
69 })(BenchmarkBase || (BenchmarkBase = {})); 69 })(BenchmarkBase || (BenchmarkBase = {}));
OLDNEW
« no previous file with comments | « lib/src/codegen/js_codegen.dart ('k') | test/codegen/expect/DeltaBlue/DeltaBlue.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698