Update web-platform-tests to revision ead8f8b00d0b68237109f3c93d0ccae076a34f98

This commit is contained in:
WPT Sync Bot 2019-02-07 20:33:07 -05:00
parent d029b1a0ff
commit 2178678b0f
75 changed files with 2476 additions and 391 deletions

View file

@ -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`);
}