| Index: third_party/WebKit/LayoutTests/fast/css/fontfacesetloadevent-constructor.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/css/fontfacesetloadevent-constructor.html b/third_party/WebKit/LayoutTests/fast/css/fontfacesetloadevent-constructor.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f3a1a87ee1d3018786ed3056377b584f7c56acab
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/css/fontfacesetloadevent-constructor.html
|
| @@ -0,0 +1,21 @@
|
| +<!DOCTYPE html>
|
| +<title>FontFaceSetLoadEvent Constructor</title>
|
| +<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_equals(e.fontfaces, e.fontfaces);
|
| + assert_not_equals(e.fontfaces, ff);
|
| + }, 'Test 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_equals(e.fontfaces, e.fontfaces);
|
| + assert_not_equals(e.fontfaces, ff);
|
| + }, 'Test FontFaceSetLoadEvent constructor with FontFaceSetLoadEventInit dictionary');
|
| +</script>
|
|
|