xref: /aosp_15_r20/external/skia/modules/pathkit/tests/pathkitinit.js (revision c8dee2aa9b3f27cf6c858bd81872bdeb2c07ed17)
1jasmine.DEFAULT_TIMEOUT_INTERVAL = 20000;
2
3let PathKit = null;
4const LoadPathKit = new Promise(function(resolve, reject) {
5    console.log('pathkit loading', new Date());
6    PathKitInit({
7        locateFile: (file) => '/pathkit/'+file,
8    }).then((_PathKit) => {
9        console.log('pathkit loaded', new Date());
10        PathKit = _PathKit;
11        resolve();
12    }).catch((e) => {
13        console.error('pathkit failed to load', new Date(), e);
14        reject();
15    });
16});