mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision ac12b3e9488edb436f063b11213e954ae62d5a5e
This commit is contained in:
parent
65370f17c9
commit
b56a3b8e69
111 changed files with 3122 additions and 68 deletions
|
@ -14,10 +14,15 @@ idl_test(
|
|||
idl_array => {
|
||||
idl_array.add_objects({
|
||||
Document: ['document'],
|
||||
FontFace: ['new FontFace("family", "src")'],
|
||||
FontFaceSetLoadEvent: ['new FontFaceSetLoadEvent("type")'],
|
||||
FontFace: ['fontFace'],
|
||||
FontFaceSetLoadEvent: ['fontFaceSetLoadEvent'],
|
||||
FontFaceSet: ['document.fonts'],
|
||||
});
|
||||
self.fontFace = new FontFace("family", "src");
|
||||
// The `fontFace.loaded` promise will be rejected, so handle that to
|
||||
// avoid an unhandled promise rejection manifesting as a harness error.
|
||||
self.fontFace.loaded.catch(() => {});
|
||||
self.fontFaceSetLoadEvent = new FontFaceSetLoadEvent("type");
|
||||
}
|
||||
);
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue