LibWeb: Import WPT tests for WebAssembly.Global

There's one failing due to the constructor object not having the name
"Global" vs "WebAssembly.Global". This also doesn't include the
tentative test for the type property.
This commit is contained in:
Andrew Kaster 2024-12-23 16:28:53 -07:00 committed by Ali Mohammad Pur
commit b11bdd4022
Notes: github-actions[bot] 2024-12-24 14:21:24 +00:00
12 changed files with 581 additions and 0 deletions

View file

@ -0,0 +1,66 @@
Harness status: OK
Found 60 tests
59 Pass
1 Fail
Fail name
Pass length
Pass No arguments
Pass Calling
Pass Order of evaluation
Pass Invalid descriptor argument
Pass Invalid type argument
Pass Construct v128 global
Pass i64 with default
Pass Default value for type i32
Pass Explicit value undefined for type i32
Pass Explicit value null for type i32
Pass Explicit value true for type i32
Pass Explicit value false for type i32
Pass Explicit value 2 for type i32
Pass Explicit value "3" for type i32
Pass Explicit value object with toString returning string for type i32
Pass Explicit value object with valueOf returning string for type i32
Pass Explicit value object with toString returning number for type i32
Pass Explicit value object with valueOf returning number for type i32
Pass BigInt value for type i32
Pass Default value for type f32
Pass Explicit value undefined for type f32
Pass Explicit value null for type f32
Pass Explicit value true for type f32
Pass Explicit value false for type f32
Pass Explicit value 2 for type f32
Pass Explicit value "3" for type f32
Pass Explicit value object with toString returning string for type f32
Pass Explicit value object with valueOf returning string for type f32
Pass Explicit value object with toString returning number for type f32
Pass Explicit value object with valueOf returning number for type f32
Pass BigInt value for type f32
Pass Default value for type f64
Pass Explicit value undefined for type f64
Pass Explicit value null for type f64
Pass Explicit value true for type f64
Pass Explicit value false for type f64
Pass Explicit value 2 for type f64
Pass Explicit value "3" for type f64
Pass Explicit value object with toString returning string for type f64
Pass Explicit value object with valueOf returning string for type f64
Pass Explicit value object with toString returning number for type f64
Pass Explicit value object with valueOf returning number for type f64
Pass BigInt value for type f64
Pass Explicit value undefined for type i64
Pass Explicit value true for type i64
Pass Explicit value false for type i64
Pass Explicit value "3" for type i64
Pass Explicit value bigint "123" for type i64
Pass Explicit value object with toString returning string for type i64
Pass Explicit value object with valueOf returning string for type i64
Pass Explicit value object with toString returning bigint for type i64
Pass Explicit value object with valueOf returning bigint for type i64
Pass Pass non-bigint as i64 Global value: null
Pass Pass non-bigint as i64 Global value: 666
Pass Pass non-bigint as i64 Global value: object "5"
Pass Pass non-bigint as i64 Global value: object "[object Object]"
Pass Pass non-bigint as i64 Global value: symbol "Symbol()"
Pass Stray argument

View file

@ -0,0 +1,7 @@
Harness status: OK
Found 2 tests
2 Pass
Pass Object.prototype.toString on an Global
Pass @@toStringTag exists on the prototype with the appropriate descriptor

View file

@ -0,0 +1,73 @@
Harness status: OK
Found 68 tests
68 Pass
Pass Branding
Pass Immutable i32 (missing)
Pass Immutable i32 with ToNumber side-effects (missing)
Pass Immutable i32 (undefined)
Pass Immutable i32 with ToNumber side-effects (undefined)
Pass Immutable i32 (null)
Pass Immutable i32 with ToNumber side-effects (null)
Pass Immutable i32 (false)
Pass Immutable i32 with ToNumber side-effects (false)
Pass Immutable i32 (empty string)
Pass Immutable i32 with ToNumber side-effects (empty string)
Pass Immutable i32 (zero)
Pass Immutable i32 with ToNumber side-effects (zero)
Pass Mutable i32 (true)
Pass Mutable i32 (one)
Pass Mutable i32 (string)
Pass Mutable i32 (true on prototype)
Pass Immutable i64 (missing)
Pass Immutable i64 with ToNumber side-effects (missing)
Pass Immutable i64 (undefined)
Pass Immutable i64 with ToNumber side-effects (undefined)
Pass Immutable i64 (null)
Pass Immutable i64 with ToNumber side-effects (null)
Pass Immutable i64 (false)
Pass Immutable i64 with ToNumber side-effects (false)
Pass Immutable i64 (empty string)
Pass Immutable i64 with ToNumber side-effects (empty string)
Pass Immutable i64 (zero)
Pass Immutable i64 with ToNumber side-effects (zero)
Pass Mutable i64 (true)
Pass Mutable i64 (one)
Pass Mutable i64 (string)
Pass Mutable i64 (true on prototype)
Pass Immutable f32 (missing)
Pass Immutable f32 with ToNumber side-effects (missing)
Pass Immutable f32 (undefined)
Pass Immutable f32 with ToNumber side-effects (undefined)
Pass Immutable f32 (null)
Pass Immutable f32 with ToNumber side-effects (null)
Pass Immutable f32 (false)
Pass Immutable f32 with ToNumber side-effects (false)
Pass Immutable f32 (empty string)
Pass Immutable f32 with ToNumber side-effects (empty string)
Pass Immutable f32 (zero)
Pass Immutable f32 with ToNumber side-effects (zero)
Pass Mutable f32 (true)
Pass Mutable f32 (one)
Pass Mutable f32 (string)
Pass Mutable f32 (true on prototype)
Pass Immutable f64 (missing)
Pass Immutable f64 with ToNumber side-effects (missing)
Pass Immutable f64 (undefined)
Pass Immutable f64 with ToNumber side-effects (undefined)
Pass Immutable f64 (null)
Pass Immutable f64 with ToNumber side-effects (null)
Pass Immutable f64 (false)
Pass Immutable f64 with ToNumber side-effects (false)
Pass Immutable f64 (empty string)
Pass Immutable f64 with ToNumber side-effects (empty string)
Pass Immutable f64 (zero)
Pass Immutable f64 with ToNumber side-effects (zero)
Pass Mutable f64 (true)
Pass Mutable f64 (one)
Pass Mutable f64 (string)
Pass Mutable f64 (true on prototype)
Pass i64 mutability
Pass Calling setter without argument
Pass Stray argument

View file

@ -0,0 +1,7 @@
Harness status: OK
Found 2 tests
2 Pass
Pass Branding
Pass Stray argument