mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Update web-platform-tests to revision b'b728032f59a396243864b0f8584e7211e3632005'
This commit is contained in:
parent
ace9b32b1c
commit
df68c4e5d1
15632 changed files with 514865 additions and 155000 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue