fune/testing/web-platform/tests/IndexedDB/nested-cloning-small.html
Evan Stade 46640f4400 Bug 1868484 [wpt PR 43529] - IndexedDB: run just a small subset of nested-cloning tests on MSAN., a=testonly
Automatic update from web-platform-tests
IndexedDB: run just a small subset of nested-cloning tests on MSAN.

Most of these related tests were already marked as timing out. After
some investigation it's apparent that reading and writing many
very large blobs is slow under MSAN. Therefore, split off a small
chunk of the tests to run under MSAN (hopefully that will retain
some potential to catch memory errors) while disabling the majority.
Use Skip instead of Timeout so as to stop wasting bot cycles.

Bug: 1508160
Change-Id: I40ba9ddb2ce4688a055c485044125a3eddd7b452
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5090079
Commit-Queue: Evan Stade <estade@chromium.org>
Reviewed-by: Nathan Memmott <memmott@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1234729}

--

wpt-commits: 24b2021980addfbd3ab52a10a7df22493deda61e
wpt-pr: 43529
2023-12-14 09:32:00 +00:00

39 lines
1.4 KiB
HTML

<!doctype html>
<meta charset="utf8">
<meta name="timeout" content="long">
<title>IndexedDB: small nested objects are cloned correctly</title>
<link rel="help" href="https://w3c.github.io/IndexedDB/#abort-transaction">
<link rel="author" href="pwnall@chromium.org" title="Victor Costan">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/support-promises.js"></script>
<script src="resources/nested-cloning-common.js"></script>
<script>
cloningTestWithKeyGenerator('blob with small typed array', [
{
blob: { type: 'blob', size: wrapThreshold, mimeType: 'text/x-blink-01',
seed: 1 },
buffer: { type: 'buffer', size: 64, seed: 2 },
},
]);
cloningTestWithKeyGenerator('blob array', [
[
{ type: 'blob', size: wrapThreshold, mimeType: 'text/x-blink-1', seed: 1 },
{ type: 'blob', size: wrapThreshold, mimeType: 'text/x-blink-2', seed: 2 },
{ type: 'blob', size: wrapThreshold, mimeType: 'text/x-blink-3', seed: 3 },
],
]);
cloningTestWithKeyGenerator('array of blobs and small typed arrays', [
[
{ type: 'blob', size: wrapThreshold, mimeType: 'text/x-blink-01', seed: 1 },
{ type: 'buffer', size: 64, seed: 2 },
{ type: 'blob', size: wrapThreshold, mimeType: 'text/x-blink-03', seed: 3 },
{ type: 'buffer', size: 64, seed: 4 },
{ type: 'blob', size: wrapThreshold, mimeType: 'text/x-blink-05', seed: 5 },
],
]);
</script>