Update web-platform-tests to revision 8ae1ddbc812733c3a73b103eafad56fb43a2f4b5

This commit is contained in:
WPT Sync Bot 2019-01-26 20:37:16 -05:00
parent d44e9aced2
commit 0e5e5db397
109 changed files with 2053 additions and 708 deletions

View file

@ -1,19 +1,34 @@
<!doctype html>
<title>css-fonts IDL tests</title>
<title>CSS Fonts IDL tests</title>
<link rel="help" href="https://drafts.csswg.org/css-fonts-4/">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/WebIDLParser.js"></script>
<script src="/resources/idlharness.js"></script>
<style>
div { display: block; }
</style>
<style>
@font-face {
font-family: fwf;
src: url(support/fonts/FontWithFancyFeatures.otf);
}
</style>
<script>
"use strict";
promise_test(async () => {
const idl_array = new IdlArray();
const idl = await fetch("/interfaces/css-fonts.idl").then(r => r.text());
const cssom = await fetch("/interfaces/cssom.idl").then(r => r.text());
idl_array.add_idls(idl);
idl_array.add_dependency_idls(cssom);
idl_array.test();
}, "Test IDL implementation of css-fonts API");
idl_test(
["css-fonts"],
["cssom"],
idl_array => {
idl_array.add_objects({
CSSRule: ['cssRule'],
CSSFontFaceRule: ['cssFontFaceRule'],
});
self.cssRule = document.styleSheets[0].cssRules[0];
self.cssFontFaceRule = document.styleSheets[1].cssRules[0];
}
);
</script>