Austin Eng 1ab815dcaa Add generated webtest .html files
Bug: chromium:1333969
Change-Id: I9b704eee654a96e96473a101157ce7fab4cc864e
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/93341
Reviewed-by: Kai Ninomiya <kainino@chromium.org>
Commit-Queue: Austin Eng <enga@chromium.org>
2022-06-10 22:00:33 +00:00

27 lines
905 B
HTML

<html>
<base ref="/gen/third_party/dawn/webgpu-cts/src/webgpu" />
<title>WebGPU canvas_complex (ref)</title>
<meta charset="utf-8" />
<link rel="help" href="https://gpuweb.github.io/gpuweb/" />
<canvas id="cvs0" width="20" height="20" style="width: 20px; height: 20px;"></canvas>
<canvas id="cvs1" width="20" height="20" style="width: 20px; height: 20px;"></canvas>
<canvas id="cvs2" width="20" height="20" style="width: 20px; height: 20px;"></canvas>
<script>
function draw(ctx) {
ctx.fillStyle = '#660000';
ctx.fillRect(0, 0, 10, 10);
ctx.fillStyle = '#006600';
ctx.fillRect(10, 0, 10, 10);
ctx.fillStyle = '#000066';
ctx.fillRect(0, 10, 10, 10);
ctx.fillStyle = '#666600';
ctx.fillRect(10, 10, 10, 10);
}
draw(cvs0.getContext('2d'));
draw(cvs1.getContext('2d'));
draw(cvs2.getContext('2d'));
</script>
</html>