(interceptedRequest, source, version)
| 84 | } |
| 85 | |
| 86 | function replaceEChartsVersion(interceptedRequest, source, version) { |
| 87 | // TODO Extensions and maps |
| 88 | if (interceptedRequest.url().endsWith('dist/echarts.js')) { |
| 89 | console.log('Use echarts version: ' + source + ' ' + version); |
| 90 | interceptedRequest.continue({ |
| 91 | url: `${origin}/test/runTest/${getVersionDir(source, version)}/${getEChartsTestFileName()}` |
| 92 | }); |
| 93 | } |
| 94 | else { |
| 95 | interceptedRequest.continue(); |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | async function convertToWebP(filePath, lossless) { |
| 100 | const webpPath = filePath.replace(/\.png$/, '.webp'); |
no test coverage detected
searching dependent graphs…