| OLD | NEW |
| 1 dart.library('BenchmarkBase', null, /* Imports */[ | 1 loader.library('BenchmarkBase', null, /* Imports */[ |
| 2 "dart/dart_runtime", |
| 3 "dart/dartx", |
| 2 'dart/core' | 4 'dart/core' |
| 3 ], /* Lazy imports */[ | 5 ], /* Lazy imports */[ |
| 4 ], function(exports, core) { | 6 ], function(exports, dart, dartx, core) { |
| 5 'use strict'; | 7 'use strict'; |
| 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]}`; |
| (...skipping 69 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 |