[latex3-commits] [git/LaTeX3-latex3-latex3] icc: Test file coverage for ICC profiles (36f1ca944)
Joseph Wright
joseph.wright at morningstar2.co.uk
Sun Feb 21 19:22:14 CET 2021
Repository : https://github.com/latex3/latex3
On branch : icc
Link : https://github.com/latex3/latex3/commit/36f1ca944692357534f6e2bbe46eaa10983966fb
>---------------------------------------------------------------
commit 36f1ca944692357534f6e2bbe46eaa10983966fb
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Sun Feb 21 18:22:14 2021 +0000
Test file coverage for ICC profiles
>---------------------------------------------------------------
36f1ca944692357534f6e2bbe46eaa10983966fb
l3kernel/testfiles/m3color003.luatex.tlg | 41 ++++++++++++++++++++++++++++++++
l3kernel/testfiles/m3color003.lvt | 27 +++++++++++++++++++++
l3kernel/testfiles/m3color003.ptex.tlg | 41 ++++++++++++++++++++++++++++++++
l3kernel/testfiles/m3color003.tlg | 41 ++++++++++++++++++++++++++++++++
l3kernel/testfiles/m3color003.uptex.tlg | 41 ++++++++++++++++++++++++++++++++
l3kernel/testfiles/m3color003.xetex.tlg | 41 ++++++++++++++++++++++++++++++++
6 files changed, 232 insertions(+)
diff --git a/l3kernel/testfiles/m3color003.luatex.tlg b/l3kernel/testfiles/m3color003.luatex.tlg
index dc11d4caa..510464cfd 100644
--- a/l3kernel/testfiles/m3color003.luatex.tlg
+++ b/l3kernel/testfiles/m3color003.luatex.tlg
@@ -462,3 +462,44 @@ l. ... }
LaTeX has been asked to create a DeviceN color space 'TwoUpMixed', but the
constituent colors do not have a common alternative color.
============================================================
+============================================================
+TEST 15: ICCBased spaces
+============================================================
+Defining \c__color_fallback_ICC_tl on line ...
+Defining \__color_backend_fill_ICC:n on line ...
+Defining \__color_backend_stroke_ICC:n on line ...
+Defining \__color_backend_select_ICC:n on line ...
+Defining \__color_model_ICC_white: on line ...
+Defining \__color_parse_model_ICC:w on line ...
+Defining \__color_parse_mix_ICC:nw on line ...
+Defining \l__color_named_ICC3_tl on line ...
+Defining \l__color_named_ICC3_prop on line ...
+The color foo has the properties:
+> model => ICC
+> ICC => 0.75 0.25 0.125.
+<recently read> }
+l. ... }
+The color foo has the properties:
+> model => ICC
+> ICC => 0.375 0.125 0.0625.
+<recently read> }
+l. ... }
+============================================================
+============================================================
+TEST 16: DeviceN errors
+============================================================
+! LaTeX3 Error: DeviceN color space 'ICCmixed' require a list of names.
+For immediate help type H <return>.
+ ...
+l. ... }
+LaTeX has been asked to create a DeviceN color space, but no
+ names = <names>
+key was given with the correct information.
+! LaTeX3 Error: DeviceN color space 'ICCmixed' require a list of names.
+For immediate help type H <return>.
+ ...
+l. ... }
+LaTeX has been asked to create a DeviceN color space, but no
+ names = <names>
+key was given with the correct information.
+============================================================
diff --git a/l3kernel/testfiles/m3color003.lvt b/l3kernel/testfiles/m3color003.lvt
index e21d322a1..012f76c52 100644
--- a/l3kernel/testfiles/m3color003.lvt
+++ b/l3kernel/testfiles/m3color003.lvt
@@ -273,4 +273,31 @@
}
}
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\TEST { ICCBased~spaces }
+ {
+ \color_model_new:nnn { ICC } { ICCBased }
+ {
+ file = sRGB.icc , components = 3
+ }
+ \color_set:nnn { ICC3 } { ICC } { 0.75 , 0.25 , 0.125 }
+ \color_set:nn { foo } { ICC3 }
+ \color_show:n { foo }
+ \color_set:nn { foo } { ICC3!50 }
+ \color_show:n { foo }
+ }
+
+\TEST { DeviceN~errors }
+ {
+ \color_model_new:nnn { ICCmixed } { DeviceN }
+ {
+ drat = X
+ }
+ \color_model_new:nnn { ICCmixed } { DeviceN }
+ {
+ file = foo
+ }
+ }
+
\END
diff --git a/l3kernel/testfiles/m3color003.ptex.tlg b/l3kernel/testfiles/m3color003.ptex.tlg
index 34e10a549..097402388 100644
--- a/l3kernel/testfiles/m3color003.ptex.tlg
+++ b/l3kernel/testfiles/m3color003.ptex.tlg
@@ -466,3 +466,44 @@ l. ... }
LaTeX has been asked to create a DeviceN color space 'TwoUpMixed', but the
constituent colors do not have a common alternative color.
============================================================
+============================================================
+TEST 15: ICCBased spaces
+============================================================
+Defining \c__color_fallback_ICC_tl on line ...
+Defining \__color_backend_fill_ICC:n on line ...
+Defining \__color_backend_stroke_ICC:n on line ...
+Defining \__color_backend_select_ICC:n on line ...
+Defining \__color_model_ICC_white: on line ...
+Defining \__color_parse_model_ICC:w on line ...
+Defining \__color_parse_mix_ICC:nw on line ...
+Defining \l__color_named_ICC3_tl on line ...
+Defining \l__color_named_ICC3_prop on line ...
+The color foo has the properties:
+> model => ICC
+> ICC => 0.75 0.25 0.125.
+<recently read> }
+l. ... }
+The color foo has the properties:
+> model => ICC
+> ICC => 0.375 0.125 0.0625.
+<recently read> }
+l. ... }
+============================================================
+============================================================
+TEST 16: DeviceN errors
+============================================================
+! LaTeX3 Error: DeviceN color space 'ICCmixed' require a list of names.
+For immediate help type H <return>.
+ ...
+l. ... }
+LaTeX has been asked to create a DeviceN color space, but no
+ names = <names>
+key was given with the correct information.
+! LaTeX3 Error: DeviceN color space 'ICCmixed' require a list of names.
+For immediate help type H <return>.
+ ...
+l. ... }
+LaTeX has been asked to create a DeviceN color space, but no
+ names = <names>
+key was given with the correct information.
+============================================================
diff --git a/l3kernel/testfiles/m3color003.tlg b/l3kernel/testfiles/m3color003.tlg
index e04b15c35..df38c8121 100644
--- a/l3kernel/testfiles/m3color003.tlg
+++ b/l3kernel/testfiles/m3color003.tlg
@@ -462,3 +462,44 @@ l. ... }
LaTeX has been asked to create a DeviceN color space 'TwoUpMixed', but the
constituent colors do not have a common alternative color.
============================================================
+============================================================
+TEST 15: ICCBased spaces
+============================================================
+Defining \c__color_fallback_ICC_tl on line ...
+Defining \__color_backend_fill_ICC:n on line ...
+Defining \__color_backend_stroke_ICC:n on line ...
+Defining \__color_backend_select_ICC:n on line ...
+Defining \__color_model_ICC_white: on line ...
+Defining \__color_parse_model_ICC:w on line ...
+Defining \__color_parse_mix_ICC:nw on line ...
+Defining \l__color_named_ICC3_tl on line ...
+Defining \l__color_named_ICC3_prop on line ...
+The color foo has the properties:
+> model => ICC
+> ICC => 0.75 0.25 0.125.
+<recently read> }
+l. ... }
+The color foo has the properties:
+> model => ICC
+> ICC => 0.375 0.125 0.0625.
+<recently read> }
+l. ... }
+============================================================
+============================================================
+TEST 16: DeviceN errors
+============================================================
+! LaTeX3 Error: DeviceN color space 'ICCmixed' require a list of names.
+For immediate help type H <return>.
+ ...
+l. ... }
+LaTeX has been asked to create a DeviceN color space, but no
+ names = <names>
+key was given with the correct information.
+! LaTeX3 Error: DeviceN color space 'ICCmixed' require a list of names.
+For immediate help type H <return>.
+ ...
+l. ... }
+LaTeX has been asked to create a DeviceN color space, but no
+ names = <names>
+key was given with the correct information.
+============================================================
diff --git a/l3kernel/testfiles/m3color003.uptex.tlg b/l3kernel/testfiles/m3color003.uptex.tlg
index 34e10a549..097402388 100644
--- a/l3kernel/testfiles/m3color003.uptex.tlg
+++ b/l3kernel/testfiles/m3color003.uptex.tlg
@@ -466,3 +466,44 @@ l. ... }
LaTeX has been asked to create a DeviceN color space 'TwoUpMixed', but the
constituent colors do not have a common alternative color.
============================================================
+============================================================
+TEST 15: ICCBased spaces
+============================================================
+Defining \c__color_fallback_ICC_tl on line ...
+Defining \__color_backend_fill_ICC:n on line ...
+Defining \__color_backend_stroke_ICC:n on line ...
+Defining \__color_backend_select_ICC:n on line ...
+Defining \__color_model_ICC_white: on line ...
+Defining \__color_parse_model_ICC:w on line ...
+Defining \__color_parse_mix_ICC:nw on line ...
+Defining \l__color_named_ICC3_tl on line ...
+Defining \l__color_named_ICC3_prop on line ...
+The color foo has the properties:
+> model => ICC
+> ICC => 0.75 0.25 0.125.
+<recently read> }
+l. ... }
+The color foo has the properties:
+> model => ICC
+> ICC => 0.375 0.125 0.0625.
+<recently read> }
+l. ... }
+============================================================
+============================================================
+TEST 16: DeviceN errors
+============================================================
+! LaTeX3 Error: DeviceN color space 'ICCmixed' require a list of names.
+For immediate help type H <return>.
+ ...
+l. ... }
+LaTeX has been asked to create a DeviceN color space, but no
+ names = <names>
+key was given with the correct information.
+! LaTeX3 Error: DeviceN color space 'ICCmixed' require a list of names.
+For immediate help type H <return>.
+ ...
+l. ... }
+LaTeX has been asked to create a DeviceN color space, but no
+ names = <names>
+key was given with the correct information.
+============================================================
diff --git a/l3kernel/testfiles/m3color003.xetex.tlg b/l3kernel/testfiles/m3color003.xetex.tlg
index 0febffaed..1de5f12b1 100644
--- a/l3kernel/testfiles/m3color003.xetex.tlg
+++ b/l3kernel/testfiles/m3color003.xetex.tlg
@@ -462,3 +462,44 @@ l. ... }
LaTeX has been asked to create a DeviceN color space 'TwoUpMixed', but the
constituent colors do not have a common alternative color.
============================================================
+============================================================
+TEST 15: ICCBased spaces
+============================================================
+Defining \c__color_fallback_ICC_tl on line ...
+Defining \__color_backend_fill_ICC:n on line ...
+Defining \__color_backend_stroke_ICC:n on line ...
+Defining \__color_backend_select_ICC:n on line ...
+Defining \__color_model_ICC_white: on line ...
+Defining \__color_parse_model_ICC:w on line ...
+Defining \__color_parse_mix_ICC:nw on line ...
+Defining \l__color_named_ICC3_tl on line ...
+Defining \l__color_named_ICC3_prop on line ...
+The color foo has the properties:
+> model => ICC
+> ICC => 0.75 0.25 0.125.
+<recently read> }
+l. ... }
+The color foo has the properties:
+> model => ICC
+> ICC => 0.375 0.125 0.0625.
+<recently read> }
+l. ... }
+============================================================
+============================================================
+TEST 16: DeviceN errors
+============================================================
+! LaTeX3 Error: DeviceN color space 'ICCmixed' require a list of names.
+For immediate help type H <return>.
+ ...
+l. ... }
+LaTeX has been asked to create a DeviceN color space, but no
+ names = <names>
+key was given with the correct information.
+! LaTeX3 Error: DeviceN color space 'ICCmixed' require a list of names.
+For immediate help type H <return>.
+ ...
+l. ... }
+LaTeX has been asked to create a DeviceN color space, but no
+ names = <names>
+key was given with the correct information.
+============================================================
More information about the latex3-commits
mailing list.