mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Update web-platform-tests to revision 0d318188757a9c996e20b82db201fd04de5aa255
This commit is contained in:
parent
b2a5225831
commit
1a81b18b9f
12321 changed files with 544385 additions and 6 deletions
11
tests/wpt/web-platform-tests/dom/constants.js
Normal file
11
tests/wpt/web-platform-tests/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