mirror of
https://github.com/servo/servo.git
synced 2025-08-12 00:45:33 +01:00
Update web-platform-tests to revision 281f62f2d8ffe72128d848851ac1e8d823f608f6
This commit is contained in:
parent
f4a5709e37
commit
2999a91526
292 changed files with 2232 additions and 742 deletions
|
@ -109,13 +109,13 @@ function testReadableStreamClone(initialBuffer, bufferType)
|
|||
var buffer;
|
||||
return stream1.getReader().read().then(function(data) {
|
||||
assert_false(data.done);
|
||||
assert_true(data.value === initialBuffer, "Buffer of being-cloned response stream is the same as the original buffer");
|
||||
assert_equals(data.value, initialBuffer, "Buffer of being-cloned response stream is the same as the original buffer");
|
||||
return stream2.getReader().read();
|
||||
}).then(function(data) {
|
||||
assert_false(data.done);
|
||||
assert_array_equals(data.value, initialBuffer, "Cloned buffer chunks have the same content");
|
||||
assert_equals(Object.getPrototypeOf(data.value), Object.getPrototypeOf(initialBuffer), "Cloned buffers have the same type");
|
||||
assert_true(data.value !== initialBuffer, "Buffer of cloned response stream is a clone of the original buffer");
|
||||
assert_not_equals(data.value, initialBuffer, "Buffer of cloned response stream is a clone of the original buffer");
|
||||
});
|
||||
}, "Check response clone use structureClone for teed ReadableStreams (" + bufferType + "chunk)");
|
||||
}
|
||||
|
|
|
@ -39,7 +39,7 @@ promise_test(function() {
|
|||
promise_test(function() {
|
||||
return createResponseWithReadableStream(function(response) {
|
||||
return response.json().then(function(json) {
|
||||
assert_true(typeof json === "object");
|
||||
assert_equals(typeof json, "object");
|
||||
});
|
||||
});
|
||||
}, "Getting json after getting the Response body - not disturbed, not locked");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue