Update web-platform-tests to revision 7ed322c3132993bcb5734702b40621448670fc76

This commit is contained in:
WPT Sync Bot 2019-12-24 08:23:56 +00:00
parent 10fa5fa68a
commit 110ca49f65
52 changed files with 1682 additions and 485 deletions

View file

@ -81,22 +81,10 @@ test(() => {
const bytes1 = [87, 101, 98, 65, 115, 115, 101, 109, 98, 108, 121];
const bytes2 = [74, 83, 65, 80, 73];
const binary = new Binary;
binary.emit_section(kUnknownSectionCode, section => {
section.emit_string("name");
section.emit_bytes(bytes1);
});
binary.emit_section(kUnknownSectionCode, section => {
section.emit_string("name");
section.emit_bytes(bytes2);
});
binary.emit_section(kUnknownSectionCode, section => {
section.emit_string("foo");
section.emit_bytes(bytes1);
});
const builder = new WasmModuleBuilder();
builder.addExplicitSection(binary.trunc_buffer());
builder.addCustomSection("name", bytes1);
builder.addCustomSection("name", bytes2);
builder.addCustomSection("foo", bytes1);
const buffer = builder.toBuffer()
const module = new WebAssembly.Module(buffer);
@ -119,14 +107,8 @@ test(() => {
const bytes = [87, 101, 98, 65, 115, 115, 101, 109, 98, 108, 121];
const name = "yee\uD801\uDC37eey"
const binary = new Binary;
binary.emit_section(kUnknownSectionCode, section => {
section.emit_string(name);
section.emit_bytes(bytes);
});
const builder = new WasmModuleBuilder();
builder.addExplicitSection(binary.trunc_buffer());
builder.addCustomSection(name, bytes);
const buffer = builder.toBuffer();
const module = new WebAssembly.Module(buffer);
@ -140,14 +122,8 @@ test(() => {
test(() => {
const bytes = [87, 101, 98, 65, 115, 115, 101, 109, 98, 108, 121];
const binary = new Binary;
binary.emit_section(kUnknownSectionCode, section => {
section.emit_string("na\uFFFDme");
section.emit_bytes(bytes);
});
const builder = new WasmModuleBuilder();
builder.addExplicitSection(binary.trunc_buffer());
builder.addCustomSection("na\uFFFDme", bytes);
const buffer = builder.toBuffer();
const module = new WebAssembly.Module(buffer);