Update web-platform-tests to revision b'b728032f59a396243864b0f8584e7211e3632005'

This commit is contained in:
WPT Sync Bot 2022-11-10 01:22:36 +00:00
parent ace9b32b1c
commit df68c4e5d1
15632 changed files with 514865 additions and 155000 deletions

View file

@ -8,12 +8,24 @@ test(function() {
}, "Float64Array")
assert_throws_dom("TypeMismatchError", function() {
self.crypto.getRandomValues(new Float32Array(65537))
const len = 65536 / Float32Array.BYTES_PER_ELEMENT + 1;
self.crypto.getRandomValues(new Float32Array(len));
}, "Float32Array (too long)")
assert_throws_dom("TypeMismatchError", function() {
self.crypto.getRandomValues(new Float64Array(65537))
const len = 65536 / Float64Array.BYTES_PER_ELEMENT + 1;
self.crypto.getRandomValues(new Float64Array(len))
}, "Float64Array (too long)")
}, "Float arrays")
}, "Float arrays");
test(function() {
assert_throws_dom("TypeMismatchError", function() {
self.crypto.getRandomValues(new DataView(new ArrayBuffer(6)))
}, "DataView")
assert_throws_dom("TypeMismatchError", function() {
self.crypto.getRandomValues(new DataView(new ArrayBuffer(65536 + 1)))
}, "DataView (too long)")
}, "DataView");
const arrays = [
'Int8Array',