X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F22-clip.t;h=b3a1616375907e81081cbd0cb683b240c4c4fb4f;hb=19660696c832bcff26c87d371cccc4ffe118c782;hp=800be76b528e3528da75cd1b8a96f51e1b783e10;hpb=038a21c751dcd34f83857e095d935bfa07b6b679;p=perl%2Fmodules%2FLaTeX-TikZ.git diff --git a/t/22-clip.t b/t/22-clip.t index 800be76..b3a1616 100644 --- a/t/22-clip.t +++ b/t/22-clip.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 2 + 2 * 9; +use Test::More tests => 2 + 2 * 10; use LaTeX::TikZ; @@ -154,3 +154,28 @@ check $seq2, 'mods folding with clips 7', <<'RES'; \end{scope} RES +$seq2->layer('top'); +$seq->layer('bottom'); + +check $seq2, 'mods folding with clips and layers', <<'RES'; +\begin{pgfonlayer}{top} +\begin{scope} [color=red] +\clip clip2 ; +\begin{scope} +\clip clip1 ; +\begin{pgfonlayer}{bottom} +\begin{scope} [color=red] +\clip clip2 ; +\begin{scope} +\clip clip1 ; +\draw foo ; +\draw bar ; +\end{scope} +\end{scope} +\end{pgfonlayer} +\draw baz ; +\end{scope} +\end{scope} +\end{pgfonlayer} +RES +