(url, resolve, reject)
| 59 | var mods = {}; |
| 60 | |
| 61 | function handleLoadError(url, resolve, reject) { |
| 62 | var errMsg = 'require: failed to load ' + url; |
| 63 | if (typeof __VRT_LOAD_ERROR__ !== 'undefined') { |
| 64 | // Not block the visual regression testing. |
| 65 | __VRT_LOAD_ERROR__(errMsg); |
| 66 | resolve(); |
| 67 | } |
| 68 | else { |
| 69 | reject(errMsg); |
| 70 | } |
| 71 | } |
| 72 | |
| 73 | function loadText(url) { |
| 74 | return new Promise(function (resolve, reject) { |
no outgoing calls
no test coverage detected
searching dependent graphs…