From 46034b0547ea9b69392bde5b334f1891bd51c98a Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Wed, 20 Sep 2017 22:29:30 -0400 Subject: [PATCH] Make the font-variations test pass Not sure what I was thinking - the test is checking the width axis, but the font we're using has only weight and contrast as axes... --- test/font-variations.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/font-variations.c b/test/font-variations.c index 36724f05b..68071d077 100644 --- a/test/font-variations.c +++ b/test/font-variations.c @@ -167,10 +167,10 @@ preamble (cairo_test_context_t *ctx) int expected_default; float expected_value; } tests[] = { - { "wdth=200,wght=300", "wdth", 0, 200.0 }, // valid - { "wdth=200.5,wght=300", "wdth", 0, 200.5 }, // valid, using decimal dot - { "wdth 200 , wght=300", "wdth", 0, 200.0 }, // valid, without = - { "wdth = 200", "wdth", 0, 200.0 }, // valid, whitespace and = + { "wdth=200,wght=300", "wght", 0, 300.0 }, // valid + { "wdth=200.5,wght=300.5", "wght", 0, 300.5 }, // valid, using decimal dot + { "wdth 200 , wght 300", "wght", 0, 300.0 }, // valid, without = + { "wght = 200", "wght", 0, 200.0 }, // valid, whitespace and = { "CNTR=20", "wght", 1, 0.0 }, // valid, not setting wght { "weight=100", "wght", 1, 0.0 }, // not a valid tag { NULL, 0 }