mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +00:00
Tests: Reimport Event-constants WPT
I reimported and rebaselined it using the latest version of our WPT importer. Now it passes.
This commit is contained in:
parent
86f1c03c06
commit
e02fd4ca8c
Notes:
github-actions[bot]
2024-12-01 21:02:38 +00:00
Author: https://github.com/shlyakpavel
Commit: e02fd4ca8c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2691
2 changed files with 18 additions and 3 deletions
|
@ -1,10 +1,14 @@
|
|||
Summary
|
||||
|
||||
Harness status: Error
|
||||
Harness status: OK
|
||||
|
||||
Rerun
|
||||
|
||||
Found tests
|
||||
Found 4 tests
|
||||
|
||||
4 Pass
|
||||
Details
|
||||
Result Test Name Message
|
||||
Result Test Name MessagePass Constants for eventPhase on Event interface object.
|
||||
Pass Constants for eventPhase on Event prototype object.
|
||||
Pass Constants for eventPhase on Event object.
|
||||
Pass Constants for eventPhase on CustomEvent object.
|
11
Tests/LibWeb/Text/input/wpt-import/dom/constants.js
Normal file
11
Tests/LibWeb/Text/input/wpt-import/dom/constants.js
Normal file
|
@ -0,0 +1,11 @@
|
|||
function testConstants(objects, constants, msg) {
|
||||
objects.forEach(function(arr) {
|
||||
var o = arr[0], desc = arr[1];
|
||||
test(function() {
|
||||
constants.forEach(function(d) {
|
||||
assert_true(d[0] in o, "Object " + o + " doesn't have " + d[0])
|
||||
assert_equals(o[d[0]], d[1], "Object " + o + " value for " + d[0] + " is wrong")
|
||||
})
|
||||
}, "Constants for " + msg + " on " + desc + ".")
|
||||
})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue