[latex3-commits] [git/LaTeX3-latex3-latex3] master: Test drawing scope (be98ab2)
Joseph Wright
joseph.wright at morningstar2.co.uk
Fri Feb 23 09:17:09 CET 2018
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/be98ab2d48062ac2e8bbe1520d64e5dc5c176c7c
>---------------------------------------------------------------
commit be98ab2d48062ac2e8bbe1520d64e5dc5c176c7c
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Fri Feb 23 08:17:09 2018 +0000
Test drawing scope
>---------------------------------------------------------------
be98ab2d48062ac2e8bbe1520d64e5dc5c176c7c
l3experimental/l3draw/testfiles/m3draw005.lvt | 47 ++++++++++++++++++++
l3experimental/l3draw/testfiles/m3draw005.ptex.tlg | 26 +++++++++++
l3experimental/l3draw/testfiles/m3draw005.tlg | 26 +++++++++++
.../l3draw/testfiles/m3draw005.uptex.tlg | 26 +++++++++++
.../l3draw/testfiles/m3draw005.xetex.tlg | 26 +++++++++++
5 files changed, 151 insertions(+)
diff --git a/l3experimental/l3draw/testfiles/m3draw005.lvt b/l3experimental/l3draw/testfiles/m3draw005.lvt
new file mode 100644
index 0000000..77bc293
--- /dev/null
+++ b/l3experimental/l3draw/testfiles/m3draw005.lvt
@@ -0,0 +1,47 @@
+%
+% Copyright (C) 2018 The LaTeX3 Project
+%
+
+\documentclass{minimal}
+\input{regression-test}
+
+\RequirePackage[check-declarations]{expl3}
+\ExplSyntaxOn
+\debug_on:n { deprecation }
+\ExplSyntaxOff
+
+\AUTHOR{Joseph Wright}
+\RequirePackage{l3draw}
+
+\ExplSyntaxOn
+
+\cs_set_protected:Npn \test:n #1
+ {
+ \hbox_set:Nn \l_tmpa_box
+ {
+ \draw_begin:
+ #1
+ \draw_path_lineto:n { 1cm, 10cm }
+ \draw_path_lineto:n { 2cm , 20cm }
+ \draw_path_use_clear:n { stroke }
+ \draw_end:
+ }
+ \box_show:N \l_tmpa_box
+ }
+
+\START
+
+\TEST { \draw_scope_begin: }
+ {
+ \test:n
+ {
+ \draw_scope_begin:
+ \draw_linewidth:n { 1pt }
+ \draw_path_lineto:n { 1cm, 10cm }
+ \draw_path_lineto:n { 2cm , 20cm }
+ \draw_path_use_clear:n { stroke }
+ \draw_scope_end:
+ }
+ }
+
+\END
diff --git a/l3experimental/l3draw/testfiles/m3draw005.ptex.tlg b/l3experimental/l3draw/testfiles/m3draw005.ptex.tlg
new file mode 100644
index 0000000..bd7390f
--- /dev/null
+++ b/l3experimental/l3draw/testfiles/m3draw005.ptex.tlg
@@ -0,0 +1,26 @@
+This is a generated file for the LaTeX (2e + expl3) validation system.
+Don't change this file in any respect.
+============================================================
+TEST 1: \draw_scope_begin:
+============================================================
+> \box...=
+\hbox(285.52756+0.0)x29.45276
+.\hbox(285.52756+0.0)x29.45276
+..\glue -27.95276
+..\vbox(0.0+0.0)x0.0, shifted 284.02756
+...\special{pdf:literal q}
+...\special{pdf:literal 0.3985 w}
+...\special{pdf:literal q}
+...\special{pdf:literal 0.99626 w}
+...\special{pdf:literal 28.34647 283.46457 l}
+...\special{pdf:literal 56.69292 566.92912 l}
+...\special{pdf:literal S}
+...\special{pdf:literal Q}
+...\special{pdf:literal 28.34647 283.46457 l}
+...\special{pdf:literal 56.69292 566.92912 l}
+...\special{pdf:literal S}
+...\special{pdf:literal Q}
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+============================================================
diff --git a/l3experimental/l3draw/testfiles/m3draw005.tlg b/l3experimental/l3draw/testfiles/m3draw005.tlg
new file mode 100644
index 0000000..13242f9
--- /dev/null
+++ b/l3experimental/l3draw/testfiles/m3draw005.tlg
@@ -0,0 +1,26 @@
+This is a generated file for the LaTeX (2e + expl3) validation system.
+Don't change this file in any respect.
+============================================================
+TEST 1: \draw_scope_begin:
+============================================================
+> \box...=
+\hbox(285.52756+0.0)x29.45276
+.\hbox(285.52756+0.0)x29.45276
+..\glue -27.95276
+..\vbox(0.0+0.0)x0.0, shifted 284.02756
+...\pdfliteral{q}
+...\pdfliteral{0.3985 w}
+...\pdfliteral{q}
+...\pdfliteral{0.99626 w}
+...\pdfliteral{28.34647 283.46457 l}
+...\pdfliteral{56.69292 566.92912 l}
+...\pdfliteral{S}
+...\pdfliteral{Q}
+...\pdfliteral{28.34647 283.46457 l}
+...\pdfliteral{56.69292 566.92912 l}
+...\pdfliteral{S}
+...\pdfliteral{Q}
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+============================================================
diff --git a/l3experimental/l3draw/testfiles/m3draw005.uptex.tlg b/l3experimental/l3draw/testfiles/m3draw005.uptex.tlg
new file mode 100644
index 0000000..bd7390f
--- /dev/null
+++ b/l3experimental/l3draw/testfiles/m3draw005.uptex.tlg
@@ -0,0 +1,26 @@
+This is a generated file for the LaTeX (2e + expl3) validation system.
+Don't change this file in any respect.
+============================================================
+TEST 1: \draw_scope_begin:
+============================================================
+> \box...=
+\hbox(285.52756+0.0)x29.45276
+.\hbox(285.52756+0.0)x29.45276
+..\glue -27.95276
+..\vbox(0.0+0.0)x0.0, shifted 284.02756
+...\special{pdf:literal q}
+...\special{pdf:literal 0.3985 w}
+...\special{pdf:literal q}
+...\special{pdf:literal 0.99626 w}
+...\special{pdf:literal 28.34647 283.46457 l}
+...\special{pdf:literal 56.69292 566.92912 l}
+...\special{pdf:literal S}
+...\special{pdf:literal Q}
+...\special{pdf:literal 28.34647 283.46457 l}
+...\special{pdf:literal 56.69292 566.92912 l}
+...\special{pdf:literal S}
+...\special{pdf:literal Q}
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+============================================================
diff --git a/l3experimental/l3draw/testfiles/m3draw005.xetex.tlg b/l3experimental/l3draw/testfiles/m3draw005.xetex.tlg
new file mode 100644
index 0000000..bd7390f
--- /dev/null
+++ b/l3experimental/l3draw/testfiles/m3draw005.xetex.tlg
@@ -0,0 +1,26 @@
+This is a generated file for the LaTeX (2e + expl3) validation system.
+Don't change this file in any respect.
+============================================================
+TEST 1: \draw_scope_begin:
+============================================================
+> \box...=
+\hbox(285.52756+0.0)x29.45276
+.\hbox(285.52756+0.0)x29.45276
+..\glue -27.95276
+..\vbox(0.0+0.0)x0.0, shifted 284.02756
+...\special{pdf:literal q}
+...\special{pdf:literal 0.3985 w}
+...\special{pdf:literal q}
+...\special{pdf:literal 0.99626 w}
+...\special{pdf:literal 28.34647 283.46457 l}
+...\special{pdf:literal 56.69292 566.92912 l}
+...\special{pdf:literal S}
+...\special{pdf:literal Q}
+...\special{pdf:literal 28.34647 283.46457 l}
+...\special{pdf:literal 56.69292 566.92912 l}
+...\special{pdf:literal S}
+...\special{pdf:literal Q}
+! OK.
+<argument> \l_tmpa_box
+l. ... }
+============================================================
More information about the latex3-commits
mailing list