dawn-cmake/webgpu-cts/test_page.html
Austin Eng 6241cf9632 Change base directory for CTS runner, part 1
Changes the test page to expect files to be served from BUILD_DIR
to BUILD_DIR/gen/third_party/dawn. Serving only the subdirectory
shaves multiple seconds off of harness startup in local builds.

Bug: chromium:1338672
Change-Id: I29927e8d0928874fe780f9b15910b0d2eed97833
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/94580
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Commit-Queue: Austin Eng <enga@chromium.org>
Reviewed-by: Brian Sheedy <bsheedy@google.com>
2022-06-23 21:45:18 +00:00

30 lines
1.2 KiB
HTML

<!doctype html>
<!-- Copyright 2022 The Dawn Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. -->
<title>WebGPU CTS</title>
<meta charset=utf-8>
<link rel=help href='https://gpuweb.github.io/gpuweb/'>
<!-- Temporarily try to |setBaseResourcePath| from two paths as we migrate the base static server dir -->
<script type=module>
import { setBaseResourcePath } from '/third_party/webgpu-cts/src/common/framework/resources.js';
setBaseResourcePath('/third_party/webgpu-cts/resources');
</script>
<script type=module>
import { setBaseResourcePath } from '/gen/third_party/dawn/third_party/webgpu-cts/src/common/framework/resources.js';
setBaseResourcePath('/gen/third_party/dawn/third_party/webgpu-cts/resources');
</script>
<script type=module src=./test_runner.js></script>