Commit e0c47628 authored by Andreas Haas's avatar Andreas Haas Committed by Commit Bot

[test] Add regression test for crbug.com/1104580

The test was not added with the fix of bug because there were problems
with Mac and Windows.

R=kainino@chromium.org

Bug: chromium:1104580
Change-Id: Iafca0c9471f37d2897fd2b8fde1aae3c8c1fb38b
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2320274
Commit-Queue: Kai Ninomiya <kainino@chromium.org>
Reviewed-by: default avatarKai Ninomiya <kainino@chromium.org>
Cr-Commit-Position: refs/heads/master@{#792468}
parent e0f255f9
...@@ -32,6 +32,11 @@ ...@@ -32,6 +32,11 @@
"bases": ["fast/canvas"], "bases": ["fast/canvas"],
"args": ["--enable-accelerated-2d-canvas"] "args": ["--enable-accelerated-2d-canvas"]
}, },
{
"prefix": "unsafe_webgpu",
"bases": ["regress/regress-1104580.html"],
"args": ["--enable-unsafe-webgpu"]
},
{ {
"prefix": "isolated_world_csp", "prefix": "isolated_world_csp",
"bases": ["http/tests/security/isolatedWorld"], "bases": ["http/tests/security/isolatedWorld"],
......
<title>Regression tests for crbug.com/1104580</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script>
async_test((test) => {
if (!navigator.gpu) {
// {navigator.gpu} is required for this test, but it only exists on
// Windows. If it does not exist, we end the test immediately.
test.done();
return;
}
navigator.gpu.requestAdapter().then(adapter => {
if (!adapter) {
test.done();
return;
}
return adapter.requestDevice();
}).then(device => {
if (!device) {
test.done();
return;
}
device.createBufferMapped({
size: 24,
usage: GPUBufferUsage.VERTEX | GPUBufferUsage.COPY_DST
});
device.createBufferMapped({
size: 0,
usage: GPUBufferUsage.VERTEX | 2261634.5098
});
test.done();
});
}, 'Regression test for crbug.com/1104580');
</script>
# This suite runs the regress/regress-1104580.html test with
# --enable-unsafe-webgpu.
# This feature is required to trigger the bug found in crbug.com/1104580.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment