Skip to content

Commit 14fbdf8

Browse files
committed
Bug 1903442 [wpt PR 46824] - avoid failing entire suites when Float16Array is undefined, a=testonly
Automatic update from web-platform-tests Avoid failing entire suites when Float16Array is undefined Followup to web-platform-tests/wpt#45483. web-platform-tests/wpt#46278 and web-platform-tests/wpt#45670 did part of this already. -- wpt-commits: da8d6860b22271d8ef4dc7894509692aaab9adf8 wpt-pr: 46824 UltraBlame original commit: 398a5e0c0d8188b048671b84f1420122374f2c59
1 parent d5a0b72 commit 14fbdf8

File tree

3 files changed

+155
-35
lines changed

3 files changed

+155
-35
lines changed

testing/web-platform/tests/FileAPI/blob/Blob-constructor.any.js

Lines changed: 55 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,6 +1969,57 @@ Int32Array
19691969
]
19701970
)
19711971
new
1972+
Float32Array
1973+
(
1974+
[
1975+
0xD341500000
1976+
]
1977+
)
1978+
]
1979+
)
1980+
;
1981+
}
1982+
{
1983+
expected
1984+
:
1985+
"
1986+
PASSPASSPASSPASSPASSPASSPASS
1987+
"
1988+
type
1989+
:
1990+
"
1991+
"
1992+
desc
1993+
:
1994+
"
1995+
Passing
1996+
typed
1997+
arrays
1998+
as
1999+
elements
2000+
of
2001+
the
2002+
blobParts
2003+
array
2004+
should
2005+
work
2006+
.
2007+
"
2008+
}
2009+
)
2010+
;
2011+
test_blob
2012+
(
2013+
function
2014+
(
2015+
)
2016+
{
2017+
return
2018+
new
2019+
Blob
2020+
(
2021+
[
2022+
new
19722023
Float16Array
19732024
(
19742025
[
@@ -1980,13 +2031,6 @@ Float16Array
19802031
59375
19812032
]
19822033
)
1983-
new
1984-
Float32Array
1985-
(
1986-
[
1987-
0xD341500000
1988-
]
1989-
)
19902034
]
19912035
)
19922036
;
@@ -1995,7 +2039,7 @@ Float32Array
19952039
expected
19962040
:
19972041
"
1998-
PASSPASSPASSPASSPASSPASSPASSPASS
2042+
PASS
19992043
"
20002044
type
20012045
:
@@ -2005,10 +2049,10 @@ desc
20052049
:
20062050
"
20072051
Passing
2008-
typed
2009-
arrays
2052+
a
2053+
Float16Array
20102054
as
2011-
elements
2055+
element
20122056
of
20132057
the
20142058
blobParts

testing/web-platform/tests/WebCryptoAPI/getRandomValues.any.js

Lines changed: 37 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -44,23 +44,52 @@ function
4444
(
4545
)
4646
{
47+
const
48+
len
49+
=
50+
65536
51+
/
52+
Float16Array
53+
.
54+
BYTES_PER_ELEMENT
55+
+
56+
1
57+
;
4758
self
4859
.
4960
crypto
5061
.
5162
getRandomValues
5263
(
5364
new
54-
Float32Array
65+
Float16Array
5566
(
56-
6
67+
len
5768
)
5869
)
70+
;
5971
}
6072
"
61-
Float32Array
73+
Float16Array
74+
(
75+
too
76+
long
77+
)
6278
"
6379
)
80+
}
81+
"
82+
Float16
83+
arrays
84+
"
85+
)
86+
;
87+
test
88+
(
89+
function
90+
(
91+
)
92+
{
6493
assert_throws_dom
6594
(
6695
"
@@ -77,14 +106,14 @@ crypto
77106
getRandomValues
78107
(
79108
new
80-
Float64Array
109+
Float32Array
81110
(
82111
6
83112
)
84113
)
85114
}
86115
"
87-
Float64Array
116+
Float32Array
88117
"
89118
)
90119
assert_throws_dom
@@ -96,37 +125,21 @@ function
96125
(
97126
)
98127
{
99-
const
100-
len
101-
=
102-
65536
103-
/
104-
Float16Array
105-
.
106-
BYTES_PER_ELEMENT
107-
+
108-
1
109-
;
110128
self
111129
.
112130
crypto
113131
.
114132
getRandomValues
115133
(
116134
new
117-
Float16Array
135+
Float64Array
118136
(
119-
len
137+
6
120138
)
121139
)
122-
;
123140
}
124141
"
125-
Float16Array
126-
(
127-
too
128-
long
129-
)
142+
Float64Array
130143
"
131144
)
132145
assert_throws_dom

testing/web-platform/tests/compression/decompression-buffersource.tentative.any.js

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,10 @@ Float16Array
324324
'
325325
value
326326
:
327+
(
328+
)
329+
=
330+
>
327331
new
328332
Float16Array
329333
(
@@ -566,6 +570,10 @@ Float16Array
566570
'
567571
value
568572
:
573+
(
574+
)
575+
=
576+
>
569577
new
570578
Float16Array
571579
(
@@ -808,6 +816,10 @@ Float16Array
808816
'
809817
value
810818
:
819+
(
820+
)
821+
=
822+
>
811823
new
812824
Float16Array
813825
(
@@ -937,6 +949,23 @@ writer
937949
.
938950
write
939951
(
952+
typeof
953+
chunk
954+
.
955+
value
956+
=
957+
=
958+
=
959+
'
960+
function
961+
'
962+
?
963+
chunk
964+
.
965+
value
966+
(
967+
)
968+
:
940969
chunk
941970
.
942971
value
@@ -1047,6 +1076,23 @@ writer
10471076
.
10481077
write
10491078
(
1079+
typeof
1080+
chunk
1081+
.
1082+
value
1083+
=
1084+
=
1085+
=
1086+
'
1087+
function
1088+
'
1089+
?
1090+
chunk
1091+
.
1092+
value
1093+
(
1094+
)
1095+
:
10501096
chunk
10511097
.
10521098
value
@@ -1159,6 +1205,23 @@ writer
11591205
.
11601206
write
11611207
(
1208+
typeof
1209+
chunk
1210+
.
1211+
value
1212+
=
1213+
=
1214+
=
1215+
'
1216+
function
1217+
'
1218+
?
1219+
chunk
1220+
.
1221+
value
1222+
(
1223+
)
1224+
:
11621225
chunk
11631226
.
11641227
value

0 commit comments

Comments
 (0)