Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1391)

Unified Diff: third_party/WebKit/LayoutTests/fast/css/fontfacesetloadevent-constructor.html

Issue 2579513005: Expose FontFaceSetLoadEvent and add a constructor for it (Closed)
Patch Set: Fix compile err Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/FontFaceSetLoadEvent.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/css/FontFaceSetLoadEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698