From 1cb5a87febb84dd3c8323e82da1db33d539310be Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 10 Jan 2023 22:13:44 -0500 Subject: [PATCH] test-pain: Print out extend for color lines Update all expected results to include this value. --- test/api/results/bad-154 | 2 +- test/api/results/hand-10 | 10 +++++----- test/api/results/hand-10.2 | 10 +++++----- test/api/results/rocher-1 | 2 +- test/api/results/rocher-2 | 2 +- test/api/results/rocher-3 | 2 +- test/api/results/test-10 | 4 ++-- test/api/results/test-106 | 2 +- test/api/results/test-116 | 2 +- test/api/results/test-123 | 2 +- test/api/results/test-154 | 4 ++-- test/api/results/test-165 | 4 ++-- test/api/results/test-175 | 4 ++-- test/api/results/test-6 | 4 ++-- test/api/results/test-92 | 4 ++-- test/api/test-paint.c | 2 +- 16 files changed, 30 insertions(+), 30 deletions(-) diff --git a/test/api/results/bad-154 b/test/api/results/bad-154 index 96c5904ef..a4d2a0e91 100644 --- a/test/api/results/bad-154 +++ b/test/api/results/bad-154 @@ -1,4 +1,4 @@ -# random seed: R02S4d8792212546d80a17c24f3863c0fe64 +# random seed: R02Safcf66bc33a0c434dd4dafbe12dbbf15 # Start of hb tests # Start of paint tests # Start of ot tests diff --git a/test/api/results/hand-10 b/test/api/results/hand-10 index 56ae7198d..10410e6ee 100644 --- a/test/api/results/hand-10 +++ b/test/api/results/hand-10 @@ -1,4 +1,4 @@ -# random seed: R02Sa2bbdfa9ec2b1d4c950ba38ddcb5cea9 +# random seed: R02Se2b1d61d9c4fd31724517ef138cff8f6 # Start of hb tests # Start of paint tests # Start of ot tests @@ -12,7 +12,7 @@ start clip rectangle 64 -224 1.22e+03 928 radial gradient p0 280 440 radius 0 p1 280 440 radius 467 - colors + colors 0 0 186 141 104 255 0.449 183 138 103 255 0.809 173 130 100 255 @@ -30,7 +30,7 @@ start clip rectangle 64 -224 1.22e+03 928 p0 231 -27 p1 1.02e+03 -27 p2 231 -815 - colors + colors 0 0 164 123 98 255 1 164 123 98 255 end transform @@ -73,7 +73,7 @@ start clip rectangle 64 -224 1.22e+03 928 p0 669 776 p1 180 -106 p2 -212 1.26e+03 - colors + colors 0 0 100 181 246 255 1 33 150 243 255 end transform @@ -98,7 +98,7 @@ start clip rectangle 64 -224 1.22e+03 928 radial gradient p0 588 198 radius 0 p1 588 198 radius 342 - colors + colors 0 0 186 141 104 255 0.449 183 138 103 255 0.809 173 130 100 255 diff --git a/test/api/results/hand-10.2 b/test/api/results/hand-10.2 index dff50414e..2076624ae 100644 --- a/test/api/results/hand-10.2 +++ b/test/api/results/hand-10.2 @@ -1,4 +1,4 @@ -# random seed: R02Sa1bbd7f567720f4aaf0abd7972c53d03 +# random seed: R02S962715a93cddae2d3121a44b0e86cc22 # Start of hb tests # Start of paint tests # Start of ot tests @@ -12,7 +12,7 @@ start clip rectangle 19 -224 1.4e+03 928 radial gradient p0 280 440 radius 0 p1 280 440 radius 467 - colors + colors 0 0 186 141 104 255 0.449 183 138 103 255 0.809 173 130 100 255 @@ -30,7 +30,7 @@ start clip rectangle 19 -224 1.4e+03 928 p0 231 -27 p1 1.02e+03 -27 p2 231 -815 - colors + colors 0 0 164 123 98 255 1 164 123 98 255 end transform @@ -73,7 +73,7 @@ start clip rectangle 19 -224 1.4e+03 928 p0 669 776 p1 180 -106 p2 -212 1.26e+03 - colors + colors 0 0 100 181 246 255 1 33 150 243 255 end transform @@ -98,7 +98,7 @@ start clip rectangle 19 -224 1.4e+03 928 radial gradient p0 588 198 radius 0 p1 588 198 radius 342 - colors + colors 0 0 186 141 104 255 0.449 183 138 103 255 0.809 173 130 100 255 diff --git a/test/api/results/rocher-1 b/test/api/results/rocher-1 index 210554bba..bcd871ff0 100644 --- a/test/api/results/rocher-1 +++ b/test/api/results/rocher-1 @@ -1,4 +1,4 @@ -# random seed: R02S0619f4e972b1d179c4e90b21eebbfbb5 +# random seed: R02Sbe08283e5db998c0ef8db485be24c9ce # Start of hb tests # Start of paint tests # Start of ot tests diff --git a/test/api/results/rocher-2 b/test/api/results/rocher-2 index ab1026425..0b840ab3b 100644 --- a/test/api/results/rocher-2 +++ b/test/api/results/rocher-2 @@ -1,4 +1,4 @@ -# random seed: R02S5c70bbb67a556a20d62d07736c9d28f1 +# random seed: R02S44e738ad8b5a9b0616dbb5ed381f9fd9 # Start of hb tests # Start of paint tests # Start of ot tests diff --git a/test/api/results/rocher-3 b/test/api/results/rocher-3 index ff30e508c..7d1e1d10b 100644 --- a/test/api/results/rocher-3 +++ b/test/api/results/rocher-3 @@ -1,4 +1,4 @@ -# random seed: R02S9b7f7743b9d517c2b4d12512dec7cfa4 +# random seed: R02Sf5cb8d4e67af171b27fea99802b3c8e6 # Start of hb tests # Start of paint tests # Start of ot tests diff --git a/test/api/results/test-10 b/test/api/results/test-10 index fc80cfc2c..78d3e233a 100644 --- a/test/api/results/test-10 +++ b/test/api/results/test-10 @@ -1,4 +1,4 @@ -# random seed: R02Se18673abb30681f00ebfae2450ceb094 +# random seed: R02S730db577e65f80492e3e3eacc21152fa # Start of hb tests # Start of paint tests # Start of ot tests @@ -10,7 +10,7 @@ start clip rectangle 0 0 1e+03 1e+03 sweep gradient center 500 600 angles 0 6.28 - colors + colors 0 0.25 250 240 230 255 0.417 0 0 255 255 0.583 255 0 0 255 diff --git a/test/api/results/test-106 b/test/api/results/test-106 index e1061c963..5ba99eb4b 100644 --- a/test/api/results/test-106 +++ b/test/api/results/test-106 @@ -1,4 +1,4 @@ -# random seed: R02Sc663003d20eb403dcaeac1a576deed2d +# random seed: R02Se7b59cf79ba25ef558857e1656ae21a7 # Start of hb tests # Start of paint tests # Start of ot tests diff --git a/test/api/results/test-116 b/test/api/results/test-116 index c31eea74e..3cb18d38d 100644 --- a/test/api/results/test-116 +++ b/test/api/results/test-116 @@ -1,4 +1,4 @@ -# random seed: R02Sc5ad459f845cff7270656fc783bc0210 +# random seed: R02S7f8abf2d360ae53f6acb756fc1d06756 # Start of hb tests # Start of paint tests # Start of ot tests diff --git a/test/api/results/test-123 b/test/api/results/test-123 index cf422f977..21f24115c 100644 --- a/test/api/results/test-123 +++ b/test/api/results/test-123 @@ -1,4 +1,4 @@ -# random seed: R02Sc4bee16dcf52bcb58907ac7ac5c774b7 +# random seed: R02Sa683270814db638bd7dc3f8fc211d03f # Start of hb tests # Start of paint tests # Start of ot tests diff --git a/test/api/results/test-154 b/test/api/results/test-154 index c9fa046ad..1465581a6 100644 --- a/test/api/results/test-154 +++ b/test/api/results/test-154 @@ -1,4 +1,4 @@ -# random seed: R02S44305390d95bd0132defe151ebe3a9a6 +# random seed: R02Sba94a82eea093a3b08429f774ffebb38 # Start of hb tests # Start of paint tests # Start of ot tests @@ -10,7 +10,7 @@ start clip rectangle 0 500 500 1e+03 radial gradient p0 166 768 radius 0 p1 166 768 radius 256 - colors + colors 2 0 0 128 0 255 0.5 255 255 255 255 1 255 0 0 255 diff --git a/test/api/results/test-165 b/test/api/results/test-165 index 6a8dbb3f2..b122f667b 100644 --- a/test/api/results/test-165 +++ b/test/api/results/test-165 @@ -1,4 +1,4 @@ -# random seed: R02S4b5d19f08491119b5a167428e9bb5b6e +# random seed: R02Sd7e42dc5034eae428f9fdf486603e319 # Start of hb tests # Start of paint tests # Start of ot tests @@ -11,7 +11,7 @@ start clip rectangle 100 250 1.2e+03 950 p0 100 950 p1 2.3e+03 950 p2 -1e+03 250 - colors + colors 0 0 255 0 0 255 0.5 0 0 255 255 1 255 255 0 255 diff --git a/test/api/results/test-175 b/test/api/results/test-175 index 028a0484e..be14b8117 100644 --- a/test/api/results/test-175 +++ b/test/api/results/test-175 @@ -1,4 +1,4 @@ -# random seed: R02S983d28d98f64a5434cae4fd3c38c2940 +# random seed: R02Se9d7defb0878dc8a90f62d9f42a715f3 # Start of hb tests # Start of paint tests # Start of ot tests @@ -24,7 +24,7 @@ start clip rectangle 0 0 1e+03 1e+03 p0 500 250 p1 500 950 p2 600 250 - colors + colors 1 0 255 0 0 255 1 0 0 255 255 end transform diff --git a/test/api/results/test-6 b/test/api/results/test-6 index 2195b76d1..94b543ec5 100644 --- a/test/api/results/test-6 +++ b/test/api/results/test-6 @@ -1,4 +1,4 @@ -# random seed: R02S57d61b1042de59bdab938a7a7c9d7ab6 +# random seed: R02S68886e711ff0007004bb488f8b8c3904 # Start of hb tests # Start of paint tests # Start of ot tests @@ -11,7 +11,7 @@ start clip rectangle 100 250 900 950 p0 100 250 p1 900 250 p2 100 300 - colors + colors 1 0 255 0 0 255 1 0 0 255 255 end transform diff --git a/test/api/results/test-92 b/test/api/results/test-92 index 37ad16fa0..422e9171e 100644 --- a/test/api/results/test-92 +++ b/test/api/results/test-92 @@ -1,4 +1,4 @@ -# random seed: R02Scfce8d678cf7cf2f5ad5e718435dbe37 +# random seed: R02Se8a9546dc34a7e4d4f5c5e997ddcf0d8 # Start of hb tests # Start of paint tests # Start of ot tests @@ -10,7 +10,7 @@ start clip rectangle 0 0 1e+03 1e+03 radial gradient p0 166 768 radius 0 p1 166 768 radius 256 - colors + colors 1 0 0 128 0 255 0.5 255 255 255 255 1 255 0 0 255 diff --git a/test/api/test-paint.c b/test/api/test-paint.c index 3f473dc87..d147027f8 100644 --- a/test/api/test-paint.c +++ b/test/api/test-paint.c @@ -173,7 +173,7 @@ print_color_line (paint_data_t *data, stops = alloca (len * sizeof (hb_color_stop_t)); hb_color_line_get_color_stops (color_line, 0, &len, stops); - print (data, "colors"); + print (data, "colors %d", hb_color_line_get_extend (color_line)); data->level += 1; for (unsigned int i = 0; i < len; i++) print (data, "%.3g %d %d %d %d",