OLD | NEW |
1 dart_library.library('BenchmarkBase', null, /* Imports */[ | 1 dart_library.library('BenchmarkBase', null, /* Imports */[ |
2 "dart/_runtime", | 2 'dart/_runtime', |
3 'dart/core' | 3 'dart/core' |
4 ], /* Lazy imports */[ | 4 ], /* Lazy imports */[ |
5 ], function(exports, dart, core) { | 5 ], function(exports, dart, core) { |
6 'use strict'; | 6 'use strict'; |
7 let dartx = dart.dartx; | 7 let dartx = dart.dartx; |
8 class Expect extends core.Object { | 8 class Expect extends core.Object { |
9 static equals(expected, actual) { | 9 static equals(expected, actual) { |
10 if (!dart.equals(expected, actual)) { | 10 if (!dart.equals(expected, actual)) { |
11 dart.throw(`Values not equal: ${expected} vs ${actual}`); | 11 dart.throw(`Values not equal: ${expected} vs ${actual}`); |
12 } | 12 } |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 measure: [core.double, []], | 86 measure: [core.double, []], |
87 report: [dart.void, []] | 87 report: [dart.void, []] |
88 }), | 88 }), |
89 statics: () => ({measureFor: [core.double, [core.Function, core.int]]}), | 89 statics: () => ({measureFor: [core.double, [core.Function, core.int]]}), |
90 names: ['measureFor'] | 90 names: ['measureFor'] |
91 }); | 91 }); |
92 // Exports: | 92 // Exports: |
93 exports.Expect = Expect; | 93 exports.Expect = Expect; |
94 exports.BenchmarkBase = BenchmarkBase; | 94 exports.BenchmarkBase = BenchmarkBase; |
95 }); | 95 }); |
OLD | NEW |