mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
LibWeb: Add FontFaceSetLoadEvent
This commit is contained in:
committed by
Jelle Raaijmakers
parent
581d6ce6e7
commit
2ff77589df
Notes:
github-actions[bot]
2026-01-06 11:25:43 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/2ff77589dfc Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7328 Reviewed-by: https://github.com/gmta ✅
@@ -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>
|
||||
Reference in New Issue
Block a user