| OLD | NEW |
| 1 dart_library.library('expect', null, /* Imports */[ | 1 dart_library.library('expect', null, /* Imports */[ |
| 2 'dart_sdk' | 2 'dart_sdk' |
| 3 ], function(exports, dart_sdk) { | 3 ], function(exports, dart_sdk) { |
| 4 'use strict'; | 4 'use strict'; |
| 5 const core = dart_sdk.core; | 5 const core = dart_sdk.core; |
| 6 const dart = dart_sdk.dart; | 6 const dart = dart_sdk.dart; |
| 7 const dartx = dart_sdk.dartx; | 7 const dartx = dart_sdk.dartx; |
| 8 const expect = Object.create(null); | 8 const expect = Object.create(null); |
| 9 expect.Expect = class Expect extends core.Object { | 9 expect.Expect = class Expect extends core.Object { |
| 10 static _truncateString(string, start, end, length) { | 10 static _truncateString(string, start, end, length) { |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 }), | 259 }), |
| 260 names: ['_truncateString', '_stringDifference', 'equals', 'isTrue', 'isFalse
', 'isNull', 'isNotNull', 'identical', 'fail', 'approxEquals', 'notEquals', 'lis
tEquals', 'mapEquals', 'stringEquals', 'setEquals', 'throws', '_getMessage', '_f
ail'] | 260 names: ['_truncateString', '_stringDifference', 'equals', 'isTrue', 'isFalse
', 'isNull', 'isNotNull', 'identical', 'fail', 'approxEquals', 'notEquals', 'lis
tEquals', 'mapEquals', 'stringEquals', 'setEquals', 'throws', '_getMessage', '_f
ail'] |
| 261 }); | 261 }); |
| 262 expect._identical = function(a, b) { | 262 expect._identical = function(a, b) { |
| 263 return core.identical(a, b); | 263 return core.identical(a, b); |
| 264 }; | 264 }; |
| 265 dart.fn(expect._identical, core.bool, [dart.dynamic, dart.dynamic]); | 265 dart.fn(expect._identical, core.bool, [dart.dynamic, dart.dynamic]); |
| 266 expect._CheckExceptionFn = dart.typedef('_CheckExceptionFn', () => dart.functi
onType(core.bool, [dart.dynamic])); | 266 expect._CheckExceptionFn = dart.typedef('_CheckExceptionFn', () => dart.functi
onType(core.bool, [dart.dynamic])); |
| 267 expect._Nullary = dart.typedef('_Nullary', () => dart.functionType(dart.dynami
c, [])); | 267 expect._Nullary = dart.typedef('_Nullary', () => dart.functionType(dart.dynami
c, [])); |
| 268 expect.ExpectException = class ExpectException extends core.Object { | 268 expect.ExpectException = class ExpectException extends core.Object { |
| 269 ExpectException(message) { | 269 new(message) { |
| 270 this.message = message; | 270 this.message = message; |
| 271 } | 271 } |
| 272 toString() { | 272 toString() { |
| 273 return this.message; | 273 return this.message; |
| 274 } | 274 } |
| 275 }; | 275 }; |
| 276 expect.ExpectException[dart.implements] = () => [core.Exception]; | 276 expect.ExpectException[dart.implements] = () => [core.Exception]; |
| 277 dart.setSignature(expect.ExpectException, { | 277 dart.setSignature(expect.ExpectException, { |
| 278 constructors: () => ({ExpectException: [expect.ExpectException, [core.String
]]}) | 278 constructors: () => ({new: [expect.ExpectException, [core.String]]}) |
| 279 }); | 279 }); |
| 280 expect.NoInline = class NoInline extends core.Object { | 280 expect.NoInline = class NoInline extends core.Object { |
| 281 NoInline() { | 281 new() { |
| 282 } | 282 } |
| 283 }; | 283 }; |
| 284 dart.setSignature(expect.NoInline, { | 284 dart.setSignature(expect.NoInline, { |
| 285 constructors: () => ({NoInline: [expect.NoInline, []]}) | 285 constructors: () => ({new: [expect.NoInline, []]}) |
| 286 }); | 286 }); |
| 287 expect.TrustTypeAnnotations = class TrustTypeAnnotations extends core.Object { | 287 expect.TrustTypeAnnotations = class TrustTypeAnnotations extends core.Object { |
| 288 TrustTypeAnnotations() { | 288 new() { |
| 289 } | 289 } |
| 290 }; | 290 }; |
| 291 dart.setSignature(expect.TrustTypeAnnotations, { | 291 dart.setSignature(expect.TrustTypeAnnotations, { |
| 292 constructors: () => ({TrustTypeAnnotations: [expect.TrustTypeAnnotations, []
]}) | 292 constructors: () => ({new: [expect.TrustTypeAnnotations, []]}) |
| 293 }); | 293 }); |
| 294 expect.AssumeDynamic = class AssumeDynamic extends core.Object { | 294 expect.AssumeDynamic = class AssumeDynamic extends core.Object { |
| 295 AssumeDynamic() { | 295 new() { |
| 296 } | 296 } |
| 297 }; | 297 }; |
| 298 dart.setSignature(expect.AssumeDynamic, { | 298 dart.setSignature(expect.AssumeDynamic, { |
| 299 constructors: () => ({AssumeDynamic: [expect.AssumeDynamic, []]}) | 299 constructors: () => ({new: [expect.AssumeDynamic, []]}) |
| 300 }); | 300 }); |
| 301 // Exports: | 301 // Exports: |
| 302 exports.expect = expect; | 302 exports.expect = expect; |
| 303 }); | 303 }); |
| OLD | NEW |