You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
584 B
19 lines
584 B
4 months ago
|
// The increased timeout is especially needed with larger binaries
|
||
|
// like in the debug/gpu build
|
||
|
jasmine.DEFAULT_TIMEOUT_INTERVAL = 60000;
|
||
|
|
||
|
let CanvasKit = null;
|
||
|
const LoadCanvasKit = new Promise((resolve, reject) => {
|
||
|
console.log('canvaskit loading', new Date());
|
||
|
CanvasKitInit({
|
||
|
locateFile: (file) => '/npm_build/'+file,
|
||
|
}).then((loaded) => {
|
||
|
console.log('canvaskit loaded', new Date());
|
||
|
CanvasKit = loaded;
|
||
|
resolve();
|
||
|
}).catch((e) => {
|
||
|
console.error('canvaskit failed to load', new Date(), e);
|
||
|
reject();
|
||
|
});
|
||
|
});
|