diff --git a/modules/canvaskit/karma.google3.conf.js b/modules/canvaskit/karma.google3.conf.js index 51deb7cb24..8b5579c239 100644 --- a/modules/canvaskit/karma.google3.conf.js +++ b/modules/canvaskit/karma.google3.conf.js @@ -8,13 +8,14 @@ module.exports = function(config) { config.files.unshift( // pattern is a path relative to google3 root referring to any file // provided by a target in the data attribute of the js_library of the test. - { pattern: 'third_party/skia/HEAD/modules/canvaskit/minimal_skottie_wasm/minimal_skottie_cc.wasm', included:false, served:true}, - { pattern: 'third_party/skia/HEAD/modules/canvaskit/minimal_skottie_wasm/minimal_skottie_cc.js', included:true, served:false}, - { pattern: 'third_party/skia/HEAD/modules/canvaskit/tests/assets/animated_gif.json', included:false, served:true}, + { pattern: 'third_party/skia/HEAD/modules/canvaskit/tests/util.js', included:true, served:false}, + { pattern: 'third_party/skia/HEAD/modules/canvaskit/canvaskit_wasm/canvaskit_cc.wasm', included:false, served:true}, + { pattern: 'third_party/skia/HEAD/modules/canvaskit/canvaskit_wasm/canvaskit_cc.js', included:true, served:false}, + { pattern: 'third_party/skia/HEAD/modules/canvaskit/tests/assets/*', included:false, served:true}, ); // proxies have the following form // {'/dir-to-serve/': '/base/dir-relative-to-google3-root'} - config.proxies['/canvaskit/'] = '/base/third_party/skia/HEAD/modules/canvaskit/minimal_skottie_wasm/'; + config.proxies['/canvaskit/'] = '/base/third_party/skia/HEAD/modules/canvaskit/canvaskit_wasm/'; config.proxies['/assets/'] = '/base/third_party/skia/HEAD/modules/canvaskit/tests/assets/'; }; diff --git a/modules/canvaskit/tests/skottie.spec.js b/modules/canvaskit/tests/skottie.spec.js index 47b6dee6d1..afe7f25b2b 100644 --- a/modules/canvaskit/tests/skottie.spec.js +++ b/modules/canvaskit/tests/skottie.spec.js @@ -34,6 +34,7 @@ describe('Skottie behavior', () => { console.warn('Skipping test because not compiled with skottie'); return; } + expect(promises[1]).not.toBe('NOT FOUND'); const animation = CanvasKit.MakeManagedAnimation(promises[1], { 'flightAnim.gif': promises[0], }); @@ -63,6 +64,7 @@ describe('Skottie behavior', () => { console.warn('Skipping test because not compiled with skottie'); return; } + expect(promises[0]).not.toBe('NOT FOUND'); const bounds = CanvasKit.LTRBRect(0, 0, 500, 500); canvas.clear(CanvasKit.WHITE);