mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests to revision 58b72393db0bd273bb93268c33666cf893feb985
This commit is contained in:
parent
43a4f01647
commit
64e0a52537
12717 changed files with 59835 additions and 59820 deletions
|
@ -0,0 +1,20 @@
|
|||
<!DOCTYPE html>
|
||||
<title>FontFaceSetLoadEvent constructor</title>
|
||||
<link rel="help" href="https://drafts.csswg.org/css-font-loading/#fontfacesetloadevent">
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>
|
||||
test(function() {
|
||||
var ff = [];
|
||||
var e = new FontFaceSetLoadEvent('type');
|
||||
assert_array_equals(e.fontfaces, ff);
|
||||
assert_not_equals(e.fontfaces, ff);
|
||||
}, 'FontFaceSetLoadEvent constructor without FontFaceSetLoadEventInit dictionary');
|
||||
|
||||
test(function() {
|
||||
var ff = [ new FontFace('family', 'src') ];
|
||||
var e = new FontFaceSetLoadEvent('type', { fontfaces: ff });
|
||||
assert_array_equals(e.fontfaces, ff);
|
||||
assert_not_equals(e.fontfaces, ff);
|
||||
}, 'FontFaceSetLoadEvent constructor with FontFaceSetLoadEventInit dictionary');
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue