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..6156fad494e2e8dfe748c4ccdff58274e3b8e0f1 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/css/fontfacesetloadevent-constructor.html |
@@ -0,0 +1,15 @@ |
+<!DOCTYPE html> |
+<title>FontFaceSetLoadEvent Constructor</title> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<script> |
+ test(function() { |
+ assert_equals(new FontFaceSetLoadEvent('type').fontfaces, undefined); |
foolip
2016/12/15 16:37:45
Does this not fail? I would expect assert_array_eq
|
+ }, 'Test FontFaceSetLoadEvent constructor without FontFaceSetLoadEventInit dictionary'); |
+ |
+ test(function() { |
+ var ff = [ new FontFace('family', 'src') ]; |
+ assert_equals(new FontFaceSetLoadEvent('type', { fontfaces: ff }).fontfaces, |
foolip
2016/12/15 16:37:45
I filed https://github.com/w3c/csswg-drafts/issues
|
+ ff); |
+ }, 'Test FontFaceSetLoadEvent constructor with FontFaceSetLoadEventInit dictionary'); |
+</script> |