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:
Pavel Shliak 2024-12-01 23:19:47 +04:00 committed by Jelle Raaijmakers
commit e02fd4ca8c
Notes: github-actions[bot] 2024-12-01 21:02:38 +00:00
2 changed files with 18 additions and 3 deletions

View file

@ -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.

View 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 + ".")
})
}