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