skia2/bazel
Kevin Lubick bf4b034027 [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] 4f7b656012/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>
2022-02-23 14:53:01 +00:00
..
common_config_settings [bazel] Compile gms for wasm and WebGL 2022-02-09 18:56:17 +00:00
gcs_mirror [bazel] Make custom karma_test rule 2022-02-23 14:53:01 +00:00
BUILD.bazel [bazel] Compile gms for wasm and WebGL 2022-02-09 18:56:17 +00:00
cc_binary_with_flags.bzl [bazel] Compile gms for wasm and WebGL 2022-02-09 18:56:17 +00:00
karma_test.bzl [bazel] Show CanvasKit can be loaded in POC karma_test 2022-02-23 14:53:01 +00:00
macros.bzl [bazel] Try adding cc_binary rules that use generated rules 2021-11-30 18:18:53 +00:00
Makefile [bazel] Compile gms for wasm and WebGL 2022-02-09 18:56:17 +00:00