summaryrefslogtreecommitdiff
path: root/Build/source/texk/dviout-util/tests
diff options
context:
space:
mode:
authorHironobu Yamashita <h.y.acetaminophen@gmail.com>2018-11-25 14:29:11 +0000
committerHironobu Yamashita <h.y.acetaminophen@gmail.com>2018-11-25 14:29:11 +0000
commitfc5971d795c43bd9c8f07559e6cbc8e0e8b62dbf (patch)
treeaa3612d4eaf16441bb289df04403a2e3e221bd20 /Build/source/texk/dviout-util/tests
parenta53a61b036a9a3ee80bbbeca963a9e3deac9ff23 (diff)
dviout-util: version 20181125
git-svn-id: svn://tug.org/texlive/trunk@49247 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dviout-util/tests')
-rw-r--r--Build/source/texk/dviout-util/tests/first.dry9
-rw-r--r--Build/source/texk/dviout-util/tests/firstpn.dry2
-rw-r--r--Build/source/texk/dviout-util/tests/oldindep.dry8
-rw-r--r--Build/source/texk/dviout-util/tests/reverse.dry23
-rw-r--r--Build/source/texk/dviout-util/tests/tpicpn.dry10
-rw-r--r--Build/source/texk/dviout-util/tests/tpicsh.dry2
-rw-r--r--Build/source/texk/dviout-util/tests/under.dvibin0 -> 1728 bytes
-rw-r--r--Build/source/texk/dviout-util/tests/under.tex44
-rw-r--r--Build/source/texk/dviout-util/tests/underout.dvibin0 -> 1832 bytes
9 files changed, 98 insertions, 0 deletions
diff --git a/Build/source/texk/dviout-util/tests/first.dry b/Build/source/texk/dviout-util/tests/first.dry
new file mode 100644
index 00000000000..dcec345d2d6
--- /dev/null
+++ b/Build/source/texk/dviout-util/tests/first.dry
@@ -0,0 +1,9 @@
+[1]
+background gray 1
+[2]
+background gray 1
+[3][4]
+background rgb 1 0 0
+
+Maximal depth of color stack:1
+Some corrections are necessary!
diff --git a/Build/source/texk/dviout-util/tests/firstpn.dry b/Build/source/texk/dviout-util/tests/firstpn.dry
new file mode 100644
index 00000000000..3ae55bc2193
--- /dev/null
+++ b/Build/source/texk/dviout-util/tests/firstpn.dry
@@ -0,0 +1,2 @@
+[1][2][3]
+No modification is necessary
diff --git a/Build/source/texk/dviout-util/tests/oldindep.dry b/Build/source/texk/dviout-util/tests/oldindep.dry
new file mode 100644
index 00000000000..4c6efd4245f
--- /dev/null
+++ b/Build/source/texk/dviout-util/tests/oldindep.dry
@@ -0,0 +1,8 @@
+[1][2]
+background rgb 1 0 0
+1:color push rgb 0 0 1
+[3][4]
+background gray 1
+
+Maximal depth of color stack:2
+Some corrections are necessary!
diff --git a/Build/source/texk/dviout-util/tests/reverse.dry b/Build/source/texk/dviout-util/tests/reverse.dry
new file mode 100644
index 00000000000..441aa3ccb2b
--- /dev/null
+++ b/Build/source/texk/dviout-util/tests/reverse.dry
@@ -0,0 +1,23 @@
+[1]
+background gray 1
+[2]
+background gray 1
+[3][4]
+background rgb 1 0 0
+[5]
+background rgb 1 0 0
+[6][7]
+background gray 1
+[8]
+background gray 1
+1:color push rgb 1 0 0
+[9]
+background gray 1
+1:color push rgb 1 0 0
+[10]
+background gray 1
+[11]
+background gray 1
+
+Maximal depth of color stack:2
+Some corrections are necessary!
diff --git a/Build/source/texk/dviout-util/tests/tpicpn.dry b/Build/source/texk/dviout-util/tests/tpicpn.dry
new file mode 100644
index 00000000000..46c0cd9d1cc
--- /dev/null
+++ b/Build/source/texk/dviout-util/tests/tpicpn.dry
@@ -0,0 +1,10 @@
+[1][2]
+pn 30
+[3][4][5]
+pn 5
+[6][7][8]
+pn 30
+[9]
+pn 30
+
+Some corrections are necessary!
diff --git a/Build/source/texk/dviout-util/tests/tpicsh.dry b/Build/source/texk/dviout-util/tests/tpicsh.dry
new file mode 100644
index 00000000000..2c3dc2fb4ad
--- /dev/null
+++ b/Build/source/texk/dviout-util/tests/tpicsh.dry
@@ -0,0 +1,2 @@
+[1][2]
+No modification is necessary
diff --git a/Build/source/texk/dviout-util/tests/under.dvi b/Build/source/texk/dviout-util/tests/under.dvi
new file mode 100644
index 00000000000..7bd73f99619
--- /dev/null
+++ b/Build/source/texk/dviout-util/tests/under.dvi
Binary files differ
diff --git a/Build/source/texk/dviout-util/tests/under.tex b/Build/source/texk/dviout-util/tests/under.tex
new file mode 100644
index 00000000000..79b640f9a94
--- /dev/null
+++ b/Build/source/texk/dviout-util/tests/under.tex
@@ -0,0 +1,44 @@
+% check underflow
+\documentclass{article}
+\usepackage[dvips]{color}
+\usepackage{atbegshi}
+\begin{document}
+black
+\newpage
+\AtBeginShipoutNext{\AtBeginShipoutDiscard}
+{\color{red}
+ start red (but discarded)
+\newpage
+ \AtBeginShipoutNext{\AtBeginShipoutDiscard}
+ {\color{blue}
+ start blue (but discarded)
+\newpage
+ \AtBeginShipoutNext{\AtBeginShipoutDiscard}
+ {\color{green}
+ start green (but discarded)
+\newpage
+ end green}
+\newpage
+ end blue}
+\newpage
+ end red}
+\newpage
+black
+\newpage
+\AtBeginShipoutNext{\AtBeginShipoutDiscard}
+{\color{red}
+ start red (but discarded)
+ {\color{blue}
+ start blue (but discarded)
+\newpage
+ end blue}
+ end red}
+\newpage
+black
+\newpage
+{\color{yellow}
+ start yellow
+\newpage
+ \AtBeginShipoutNext{\AtBeginShipoutDiscard}
+ end yellow (but discarded)}
+\end{document}
diff --git a/Build/source/texk/dviout-util/tests/underout.dvi b/Build/source/texk/dviout-util/tests/underout.dvi
new file mode 100644
index 00000000000..ab81e58cdd2
--- /dev/null
+++ b/Build/source/texk/dviout-util/tests/underout.dvi
Binary files differ