mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Update web-platform-tests to revision ead8f8b00d0b68237109f3c93d0ccae076a34f98
This commit is contained in:
parent
d029b1a0ff
commit
2178678b0f
75 changed files with 2476 additions and 391 deletions
|
@ -21,17 +21,17 @@
|
|||
function testUrange(input, expected) {
|
||||
test(()=>{
|
||||
const rule = document.styleSheets[0].cssRules[0];
|
||||
rule.style.unicodeRange = "U+1357";
|
||||
rule.style.unicodeRange = input;
|
||||
assert_equals(rule.style.unicodeRange.toUpperCase(), expected.toUpperCase());
|
||||
rule.style.setProperty("unicode-range", "U+1357");
|
||||
rule.style.setProperty("unicode-range", input);
|
||||
assert_equals(rule.style.getPropertyValue("unicode-range").toUpperCase(), expected.toUpperCase());
|
||||
}, `"${input}" => "${expected}"`)
|
||||
}
|
||||
function testInvalidUrange(input) {
|
||||
test(()=>{
|
||||
const rule = document.styleSheets[0].cssRules[0];
|
||||
rule.style.unicodeRange = "U+1357";
|
||||
rule.style.unicodeRange = input;
|
||||
assert_equals(rule.style.unicodeRange.toUpperCase(), "U+1357");
|
||||
rule.style.setProperty("unicode-range", "U+1357");
|
||||
rule.style.setProperty("unicode-range", input);
|
||||
assert_equals(rule.style.getPropertyValue("unicode-range").toUpperCase(), "U+1357");
|
||||
}, `"${input}" is invalid`);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue