| OLD | NEW |
| 1 dart_library.library('async_helper', null, /* Imports */[ | 1 dart_library.library('async_helper', 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 exports._initialized = false; | 8 exports._initialized = false; |
| 9 let _Action0 = dart.typedef('_Action0', () => dart.functionType(dart.void, [])
); | 9 const _Action0 = dart.typedef('_Action0', () => dart.functionType(dart.void, [
])); |
| 10 exports._onAsyncEnd = null; | 10 exports._onAsyncEnd = null; |
| 11 exports._asyncLevel = 0; | 11 exports._asyncLevel = 0; |
| 12 function _buildException(msg) { | 12 function _buildException(msg) { |
| 13 return core.Exception.new(`Fatal: ${msg}. This is most likely a bug in your
test.`); | 13 return core.Exception.new(`Fatal: ${msg}. This is most likely a bug in your
test.`); |
| 14 } | 14 } |
| 15 dart.fn(_buildException, core.Exception, [core.String]); | 15 dart.fn(_buildException, core.Exception, [core.String]); |
| 16 function asyncTestInitialize(callback) { | 16 function asyncTestInitialize(callback) { |
| 17 exports._asyncLevel = 0; | 17 exports._asyncLevel = 0; |
| 18 exports._initialized = false; | 18 exports._initialized = false; |
| 19 exports._onAsyncEnd = callback; | 19 exports._onAsyncEnd = callback; |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 dart.dsend(f(), 'then', asyncSuccess); | 64 dart.dsend(f(), 'then', asyncSuccess); |
| 65 } | 65 } |
| 66 dart.fn(asyncTest, dart.void, [dart.functionType(dart.dynamic, [])]); | 66 dart.fn(asyncTest, dart.void, [dart.functionType(dart.dynamic, [])]); |
| 67 // Exports: | 67 // Exports: |
| 68 exports.asyncTestInitialize = asyncTestInitialize; | 68 exports.asyncTestInitialize = asyncTestInitialize; |
| 69 exports.asyncStart = asyncStart; | 69 exports.asyncStart = asyncStart; |
| 70 exports.asyncEnd = asyncEnd; | 70 exports.asyncEnd = asyncEnd; |
| 71 exports.asyncSuccess = asyncSuccess; | 71 exports.asyncSuccess = asyncSuccess; |
| 72 exports.asyncTest = asyncTest; | 72 exports.asyncTest = asyncTest; |
| 73 }); | 73 }); |
| OLD | NEW |