• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Configuration for running the tests in google3
2// The only thing to specify is the static file dependencies.
3// For everything else the defaults for the karam_web_test_suite are used.
4
5module.exports = function(config) {
6  // By default this contains any srcs in the build rule, but we need to add our
7  // generated js and wasm files, and they need to come first, hence unshift
8  config.files.unshift(
9    // pattern is a path relative to google3 root referring to any file
10    // provided by a target in the data attribute of the js_library of the test.
11    { pattern: 'third_party/skia/HEAD/modules/canvaskit/tests/util.js', included:true, served:false},
12    { pattern: 'third_party/skia/HEAD/modules/canvaskit/canvaskit_wasm/canvaskit_cc.wasm', included:false, served:true},
13    { pattern: 'third_party/skia/HEAD/modules/canvaskit/canvaskit_wasm/canvaskit_cc.js', included:true, served:false},
14    { pattern: 'third_party/skia/HEAD/modules/canvaskit/tests/assets/*', included:false, served:true},
15  );
16
17  // proxies have the following form
18  // {'/dir-to-serve/': '/base/dir-relative-to-google3-root'}
19  config.proxies['/canvaskit/'] = '/base/third_party/skia/HEAD/modules/canvaskit/canvaskit_wasm/';
20  config.proxies['/assets/'] = '/base/third_party/skia/HEAD/modules/canvaskit/tests/assets/';
21};
22