X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FLaTeX-TikZ.git;a=blobdiff_plain;f=t%2F23-pattern.t;h=c592ad07b0e5286998ad114c32ce04627eae71a3;hp=5f69bd0f22290156244f9ba0809d4f4cf6ceabe9;hb=d8d667d1c5266bff861df78c252c92d1504be92c;hpb=77014f7c9da229da3785af0718f77412cb7756f9 diff --git a/t/23-pattern.t b/t/23-pattern.t index 5f69bd0..c592ad0 100644 --- a/t/23-pattern.t +++ b/t/23-pattern.t @@ -44,10 +44,10 @@ my $lines = eval { is $@, '', 'creating a line pattern doesn\'t croak'; check $lines, 'a line pattern', <<'DECL', <<'BODY'; -\pgfdeclarepatternformonly{pata}{\pgfqpoint{-0.2pt}{-0.2pt}}{\pgfqpoint{0.3pt}{0.3pt}}{\pgfqpoint{0.2pt}{0.2pt}}{ +\pgfdeclarepatternformonly{pata}{\pgfqpoint{-0.2pt}{-0.2pt}}{\pgfqpoint{1.8pt}{1.8pt}}{\pgfqpoint{1.6pt}{1.6pt}}{ \pgfsetlinewidth{0.2pt} -\pgfpathmoveto{\pgfqpoint{-0.2pt}{0.1pt}} -\pgfpathlineto{\pgfqpoint{0.3pt}{0.1pt}} +\pgfpathmoveto{\pgfqpoint{-0.2pt}{0.8pt}} +\pgfpathlineto{\pgfqpoint{1.8pt}{0.8pt}} \pgfusepath{stroke} } DECL @@ -61,8 +61,8 @@ my $dots = eval { is $@, '', 'creating a dot pattern doesn\'t croak'; check $dots, 'a dot pattern', <<'DECL', <<'BODY'; -\pgfdeclarepatternformonly{patb}{\pgfqpoint{-0.2pt}{-0.2pt}}{\pgfqpoint{0.3pt}{0.3pt}}{\pgfqpoint{0.2pt}{0.2pt}}{ -\pgfpathcircle{\pgfqpoint{0.1pt}{0.1pt}}{0.2pt} +\pgfdeclarepatternformonly{patb}{\pgfqpoint{-0.2pt}{-0.2pt}}{\pgfqpoint{1.8pt}{1.8pt}}{\pgfqpoint{1.6pt}{1.6pt}}{ +\pgfpathcircle{\pgfqpoint{0.8pt}{0.8pt}}{0.2pt} \pgfusepath{fill} } DECL @@ -81,10 +81,10 @@ my $seq = eval { is $@, '', 'creating a sequence with two identic patterns doesn\'t croak'; check $seq, 'a sequence with two identic patterns', <<'DECL', <<'BODY'; -\pgfdeclarepatternformonly{pata}{\pgfqpoint{-0.2pt}{-0.2pt}}{\pgfqpoint{0.3pt}{0.3pt}}{\pgfqpoint{0.2pt}{0.2pt}}{ +\pgfdeclarepatternformonly{pata}{\pgfqpoint{-0.2pt}{-0.2pt}}{\pgfqpoint{1.8pt}{1.8pt}}{\pgfqpoint{1.6pt}{1.6pt}}{ \pgfsetlinewidth{0.2pt} -\pgfpathmoveto{\pgfqpoint{-0.2pt}{0.1pt}} -\pgfpathlineto{\pgfqpoint{0.3pt}{0.1pt}} +\pgfpathmoveto{\pgfqpoint{-0.2pt}{0.8pt}} +\pgfpathlineto{\pgfqpoint{1.8pt}{0.8pt}} \pgfusepath{stroke} } DECL @@ -101,16 +101,16 @@ is $@, '', 'creating a sequence with two orthogonal line patterns doesn\'t croak'; check $seq, 'a sequence with two orthogonal line patterns', <<'DECL', <<'BODY'; -\pgfdeclarepatternformonly{patc}{\pgfqpoint{-0.2pt}{-0.2pt}}{\pgfqpoint{0.3pt}{0.3pt}}{\pgfqpoint{0.2pt}{0.2pt}}{ +\pgfdeclarepatternformonly{patc}{\pgfqpoint{-0.2pt}{-0.2pt}}{\pgfqpoint{1.8pt}{1.8pt}}{\pgfqpoint{1.6pt}{1.6pt}}{ \pgfsetlinewidth{0.2pt} -\pgfpathmoveto{\pgfqpoint{0.1pt}{-0.2pt}} -\pgfpathlineto{\pgfqpoint{0.1pt}{0.3pt}} +\pgfpathmoveto{\pgfqpoint{0.8pt}{-0.2pt}} +\pgfpathlineto{\pgfqpoint{0.8pt}{1.8pt}} \pgfusepath{stroke} } -\pgfdeclarepatternformonly{pata}{\pgfqpoint{-0.2pt}{-0.2pt}}{\pgfqpoint{0.3pt}{0.3pt}}{\pgfqpoint{0.2pt}{0.2pt}}{ +\pgfdeclarepatternformonly{pata}{\pgfqpoint{-0.2pt}{-0.2pt}}{\pgfqpoint{1.8pt}{1.8pt}}{\pgfqpoint{1.6pt}{1.6pt}}{ \pgfsetlinewidth{0.2pt} -\pgfpathmoveto{\pgfqpoint{-0.2pt}{0.1pt}} -\pgfpathlineto{\pgfqpoint{0.3pt}{0.1pt}} +\pgfpathmoveto{\pgfqpoint{-0.2pt}{0.8pt}} +\pgfpathlineto{\pgfqpoint{1.8pt}{0.8pt}} \pgfusepath{stroke} } DECL @@ -126,14 +126,14 @@ $seq = eval { is $@, '', 'creating a sequence with two different patterns doesn\'t croak'; check $seq, 'a sequence with two different patterns', <<'DECL', <<'BODY'; -\pgfdeclarepatternformonly{patb}{\pgfqpoint{-0.2pt}{-0.2pt}}{\pgfqpoint{0.3pt}{0.3pt}}{\pgfqpoint{0.2pt}{0.2pt}}{ -\pgfpathcircle{\pgfqpoint{0.1pt}{0.1pt}}{0.2pt} +\pgfdeclarepatternformonly{patb}{\pgfqpoint{-0.2pt}{-0.2pt}}{\pgfqpoint{1.8pt}{1.8pt}}{\pgfqpoint{1.6pt}{1.6pt}}{ +\pgfpathcircle{\pgfqpoint{0.8pt}{0.8pt}}{0.2pt} \pgfusepath{fill} } -\pgfdeclarepatternformonly{pata}{\pgfqpoint{-0.2pt}{-0.2pt}}{\pgfqpoint{0.3pt}{0.3pt}}{\pgfqpoint{0.2pt}{0.2pt}}{ +\pgfdeclarepatternformonly{pata}{\pgfqpoint{-0.2pt}{-0.2pt}}{\pgfqpoint{1.8pt}{1.8pt}}{\pgfqpoint{1.6pt}{1.6pt}}{ \pgfsetlinewidth{0.2pt} -\pgfpathmoveto{\pgfqpoint{-0.2pt}{0.1pt}} -\pgfpathlineto{\pgfqpoint{0.3pt}{0.1pt}} +\pgfpathmoveto{\pgfqpoint{-0.2pt}{0.8pt}} +\pgfpathlineto{\pgfqpoint{1.8pt}{0.8pt}} \pgfusepath{stroke} } DECL