commit | bf4b0340272ffbaccab2769f9e12d703add21d56 | [log] [tgz] |
---|---|---|
author | Kevin Lubick <kjlubick@google.com> | Wed Feb 23 09:17:04 2022 -0500 |
committer | Kevin Lubick <kjlubick@google.com> | Wed Feb 23 14:53:01 2022 +0000 |
tree | c8461798bff8cf708d2e4e660b2f1777959d6344 | |
parent | a2d3958e1f23bc450382ba7235440554d39cb290 [diff] |
[bazel] Show CanvasKit can be loaded in POC karma_test In order to load CanvasKit, we need to add support for statically served files. On the karma side, this is done by adding an object [1] to the files list (example: [2]). Then, we need to include canvaskit.js in with the karma test files and use the callback to load canvaskit.wasm from the correct file location. [1] http://karma-runner.github.io/6.3/config/files.html [2] https://github.com/google/skia/blob/4f7b6560123d89cac2a9ec6eb71a54b5bc2fe56c/modules/canvaskit/karma.conf.js#L13 Change-Id: I7482d6e949a5e8efd0ca882efe5afbe0dc16c0e4 Bug: skia:12541 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/510736 Reviewed-by: Leandro Lovisolo <lovisolo@google.com>