Update web-platform-tests to revision 281f62f2d8ffe72128d848851ac1e8d823f608f6

This commit is contained in:
WPT Sync Bot 2020-09-23 08:21:22 +00:00
parent f4a5709e37
commit 2999a91526
292 changed files with 2232 additions and 742 deletions

View file

@ -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)");
}

View file

@ -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");