From e7f40a764517682e3cd07fe2758b2a7883306cf5 Mon Sep 17 00:00:00 2001 From: Marco Castelluccio Date: Wed, 1 Apr 2020 13:24:32 +0000 Subject: [PATCH] Bug 1623924 [wpt PR 22359] - XHR/CSS/Compression: use Wasm to get at a SharedArrayBuffer instancd, a=testonly Automatic update from web-platform-tests XHR/CSS/Compression: use Wasm to get at a SharedArrayBuffer instance For https://github.com/web-platform-tests/wpt/issues/22358. -- wpt-commits: c8d8f8e2d426e71c11f86512fadd5d8744413c13 wpt-pr: 22359 UltraBlame original commit: 5cd0a8d5e1661ea051b6cb61885f80affcb93701 --- .../compression-bad-chunks.tentative.any.js | 84 ++++++++++++++++- .../decompression-bad-chunks.tentative.any.js | 84 ++++++++++++++++- .../constraints-data-sab-failure.https.html | 43 ++++++++- .../fragment-data-sab-failure.https.html | 43 ++++++++- .../xhr/send-data-sharedarraybuffer.any.js | 92 +++++++++++++++++-- 5 files changed, 332 insertions(+), 14 deletions(-) diff --git a/testing/web-platform/tests/compression/compression-bad-chunks.tentative.any.js b/testing/web-platform/tests/compression/compression-bad-chunks.tentative.any.js index f7b438766d381..b4660ac068368 100644 --- a/testing/web-platform/tests/compression/compression-bad-chunks.tentative.any.js +++ b/testing/web-platform/tests/compression/compression-bad-chunks.tentative.any.js @@ -107,11 +107,51 @@ value ( ) { -return +/ +/ +See +https +: +/ +/ +github +. +com +/ +whatwg +/ +html +/ +issues +/ +5380 +for +why +not new SharedArrayBuffer ( ) +return +new +WebAssembly +. +Memory +( +{ +shared +: +true +initial +: +1 +maximum +: +1 +} +) +. +buffer ; } } @@ -127,14 +167,54 @@ value ( ) { +/ +/ +See +https +: +/ +/ +github +. +com +/ +whatwg +/ +html +/ +issues +/ +5380 +for +why +not +new +SharedArrayBuffer +( +) return new Uint8Array ( new -SharedArrayBuffer +WebAssembly +. +Memory ( +{ +shared +: +true +initial +: +1 +maximum +: +1 +} ) +. +buffer ) } } diff --git a/testing/web-platform/tests/compression/decompression-bad-chunks.tentative.any.js b/testing/web-platform/tests/compression/decompression-bad-chunks.tentative.any.js index b399c783059a6..a44b832a29a34 100644 --- a/testing/web-platform/tests/compression/decompression-bad-chunks.tentative.any.js +++ b/testing/web-platform/tests/compression/decompression-bad-chunks.tentative.any.js @@ -107,11 +107,51 @@ value ( ) { -return +/ +/ +See +https +: +/ +/ +github +. +com +/ +whatwg +/ +html +/ +issues +/ +5380 +for +why +not new SharedArrayBuffer ( ) +return +new +WebAssembly +. +Memory +( +{ +shared +: +true +initial +: +1 +maximum +: +1 +} +) +. +buffer ; } } @@ -127,14 +167,54 @@ value ( ) { +/ +/ +See +https +: +/ +/ +github +. +com +/ +whatwg +/ +html +/ +issues +/ +5380 +for +why +not +new +SharedArrayBuffer +( +) return new Uint8Array ( new -SharedArrayBuffer +WebAssembly +. +Memory ( +{ +shared +: +true +initial +: +1 +maximum +: +1 +} ) +. +buffer ) } } diff --git a/testing/web-platform/tests/css/css-layout-api/constraints-data-sab-failure.https.html b/testing/web-platform/tests/css/css-layout-api/constraints-data-sab-failure.https.html index 0cc3d6f81f3aa..eca193a5d43f9 100644 --- a/testing/web-platform/tests/css/css-layout-api/constraints-data-sab-failure.https.html +++ b/testing/web-platform/tests/css/css-layout-api/constraints-data-sab-failure.https.html @@ -267,16 +267,55 @@ layoutNextFragment ( { +/ +/ +See +https +: +/ +/ +github +. +com +/ +whatwg +/ +html +/ +issues +/ +5380 +for +why +not +new +SharedArrayBuffer +( +) data : { sab : new -SharedArrayBuffer +WebAssembly +. +Memory ( -4 +{ +shared +: +true +initial +: +1 +maximum +: +1 +} ) +. +buffer } } ) diff --git a/testing/web-platform/tests/css/css-layout-api/fragment-data-sab-failure.https.html b/testing/web-platform/tests/css/css-layout-api/fragment-data-sab-failure.https.html index 03fbdc71efab7..061bdfc7c5dda 100644 --- a/testing/web-platform/tests/css/css-layout-api/fragment-data-sab-failure.https.html +++ b/testing/web-platform/tests/css/css-layout-api/fragment-data-sab-failure.https.html @@ -276,6 +276,31 @@ ) ) ; +/ +/ +See +https +: +/ +/ +github +. +com +/ +whatwg +/ +html +/ +issues +/ +5380 +for +why +not +new +SharedArrayBuffer +( +) return { autoBlockSize @@ -288,10 +313,24 @@ sab : new -SharedArrayBuffer +WebAssembly +. +Memory ( -4 +{ +shared +: +true +initial +: +1 +maximum +: +1 +} ) +. +buffer } } ; diff --git a/testing/web-platform/tests/xhr/send-data-sharedarraybuffer.any.js b/testing/web-platform/tests/xhr/send-data-sharedarraybuffer.any.js index 5fe021ffda85b..fa19d3389bfdb 100644 --- a/testing/web-platform/tests/xhr/send-data-sharedarraybuffer.any.js +++ b/testing/web-platform/tests/xhr/send-data-sharedarraybuffer.any.js @@ -17,7 +17,7 @@ test = > { -var +const xhr = new @@ -25,13 +25,53 @@ XMLHttpRequest ( ) ; -var +/ +/ +See +https +: +/ +/ +github +. +com +/ +whatwg +/ +html +/ +issues +/ +5380 +for +why +not +new +SharedArrayBuffer +( +) +const buf = new -SharedArrayBuffer +WebAssembly +. +Memory ( +{ +shared +: +true +initial +: +1 +maximum +: +1 +} ) +. +buffer ; xhr . @@ -124,7 +164,7 @@ test = > { -var +const xhr = new @@ -132,7 +172,32 @@ XMLHttpRequest ( ) ; -var +/ +/ +See +https +: +/ +/ +github +. +com +/ +whatwg +/ +html +/ +issues +/ +5380 +for +why +not +new +SharedArrayBuffer +( +) +const arr = new @@ -142,9 +207,24 @@ type ] ( new -SharedArrayBuffer +WebAssembly +. +Memory ( +{ +shared +: +true +initial +: +1 +maximum +: +1 +} ) +. +buffer ) ; xhr