58a768b68f
Change-Id: Ifb7a4191d43d1875da945a5f3af2d1bed62ee915 Bug: skia:12715 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/480236 Reviewed-by: Nathaniel Nifong <nifong@google.com>
19 lines
580 B
JavaScript
19 lines
580 B
JavaScript
// 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) => '/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();
|
|
});
|
|
});
|