[latex3-commits] [git/LaTeX3-latex3-latex3] icc: Test file coverage for ICC profiles (fcf277f3c)

Joseph Wright joseph.wright at morningstar2.co.uk
Mon Oct 18 13:24:59 CEST 2021


Repository : https://github.com/latex3/latex3
On branch  : icc
Link       : https://github.com/latex3/latex3/commit/fcf277f3c4ccd133702a48bec959c13fad9ecc0f

>---------------------------------------------------------------

commit fcf277f3c4ccd133702a48bec959c13fad9ecc0f
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date:   Sun Feb 21 18:22:14 2021 +0000

    Test file coverage for ICC profiles


>---------------------------------------------------------------

fcf277f3c4ccd133702a48bec959c13fad9ecc0f
 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 +++++++++++++++++++++++++++++++++
 5 files changed, 191 insertions(+)

diff --git a/l3kernel/testfiles/m3color003.lvt b/l3kernel/testfiles/m3color003.lvt
index 4380d4b63..16e86fa58 100644
--- a/l3kernel/testfiles/m3color003.lvt
+++ b/l3kernel/testfiles/m3color003.lvt
@@ -280,4 +280,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 2a5b13b25..84ba94580 100644
--- a/l3kernel/testfiles/m3color003.ptex.tlg
+++ b/l3kernel/testfiles/m3color003.ptex.tlg
@@ -478,3 +478,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 83eee33c4..9854fec68 100644
--- a/l3kernel/testfiles/m3color003.tlg
+++ b/l3kernel/testfiles/m3color003.tlg
@@ -474,3 +474,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 2a5b13b25..84ba94580 100644
--- a/l3kernel/testfiles/m3color003.uptex.tlg
+++ b/l3kernel/testfiles/m3color003.uptex.tlg
@@ -478,3 +478,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 8293d4e4d..6c991b675 100644
--- a/l3kernel/testfiles/m3color003.xetex.tlg
+++ b/l3kernel/testfiles/m3color003.xetex.tlg
@@ -474,3 +474,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.