mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Update web-platform-tests to revision 7ed322c3132993bcb5734702b40621448670fc76
This commit is contained in:
parent
10fa5fa68a
commit
110ca49f65
52 changed files with 1682 additions and 485 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue