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