mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +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
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