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

Unified Diff: LayoutTests/fast/css/fontface-properties.html

Issue 335333002: Make "descriptors" argument of FontFace constructor optional (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 months 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
Index: LayoutTests/fast/css/fontface-properties.html
diff --git a/LayoutTests/fast/css/fontface-properties.html b/LayoutTests/fast/css/fontface-properties.html
index 7f05dc3133142e754b5595e888f473705e941b4a..f634f0e854d4cfcf587fa5739b26b34e5deb02f8 100644
--- a/LayoutTests/fast/css/fontface-properties.html
+++ b/LayoutTests/fast/css/fontface-properties.html
@@ -32,7 +32,7 @@ function runTests() {
shouldBeEqualToString('ahemFace.featureSettings', "'dlig' 1");
debug('');
- defaultFace = new FontFace('defaultFace', 'local(foo)', {});
+ defaultFace = new FontFace('defaultFace', 'local(foo)');
shouldBeEqualToString('defaultFace.family', 'defaultFace');
shouldBeEqualToString('defaultFace.style', 'normal');
shouldBeEqualToString('defaultFace.weight', 'normal');
@@ -57,7 +57,7 @@ function runTests() {
shouldBeEqualToString('constructedFace.featureSettings', "'liga' 0");
debug('');
- modifiedFace = new FontFace('unmodified', 'local(baz)', {});
+ modifiedFace = new FontFace('unmodified', 'local(baz)');
modifiedFace.family = 'modified';
modifiedFace.style = 'italic';
modifiedFace.weight = 900;
@@ -72,8 +72,8 @@ function runTests() {
shouldBeEqualToString('modifiedFace.featureSettings', "'dlig' 1, 'liga' 0");
debug('');
- shouldThrow("new FontFace('test', 'invalid_src', {})");
- face = new FontFace('test', 'local(foo)', {});
+ shouldThrow("new FontFace('test', 'invalid_src')");
+ face = new FontFace('test', 'local(foo)');
shouldThrow("face.style = ''");
shouldThrow("face.weight = 'a'");
shouldThrow("face.unicodeRange = 'U+'");
« no previous file with comments | « LayoutTests/fast/css/fontface-arraybuffer.html ('k') | LayoutTests/fast/css/fontface-properties-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698