From 5cada0d0fca3413419facba06c299eb606b88074 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=B6rg=20Lehmann?= Date: Thu, 26 Feb 2004 18:46:51 +0000 Subject: [PATCH] removed obsolete test for tex module git-svn-id: https://pyx.svn.sourceforge.net/svnroot/pyx/trunk/pyx@1381 069f4177-920e-0410-937b-c2a4a81bcd90 --- test/functional/test_latex.py | 57 ------------------------------------------ test/functional/test_tex.py | 58 ------------------------------------------- 2 files changed, 115 deletions(-) delete mode 100755 test/functional/test_latex.py delete mode 100755 test/functional/test_tex.py diff --git a/test/functional/test_latex.py b/test/functional/test_latex.py deleted file mode 100755 index 75708adb..00000000 --- a/test/functional/test_latex.py +++ /dev/null @@ -1,57 +0,0 @@ -#!/usr/bin/env python -import sys; sys.path[:0] = ["../.."] - -from pyx import * -from pyx import tex - -c=canvas.canvas() -t=c.insert(tex.latex()) -t.text(0, 0, "Hello, world!") -print "width:", t.textwd("Hello, world!") -print "height:", t.textht("Hello, world!") -print "depth:", t.textdp("Hello, world!") -t.text(0, -0.5, "Hello, world!", tex.fontsize.large) -t.text(0, -1.5, - r"\sum_{n=1}^{\infty} {1\over{n^2}} = {{\pi^2}\over 6}", - tex.style.math) - -c.stroke(path.line(5, -0.5, 9, -0.5)) -c.stroke(path.line(5, -1, 9, -1)) -c.stroke(path.line(5, -1.5, 9, -1.5)) -c.stroke(path.line(7, -1.5, 7, 0)) -t.text(7, -0.5, "left aligned") # default is tex.halign.left -t.text(7, -1, "center aligned", tex.halign.center) -t.text(7, -1.5, "right aligned", tex.halign.right) - -c.stroke(path.line(0, -4, 2, -4)) -c.stroke(path.line(0, -2.5, 0, -5.5)) -c.stroke(path.line(2, -2.5, 2, -5.5)) -t.text(0, -4, - "a b c d e f g h i j k l m n o p q r s t u v w x y z", - tex.valign.top(2)) -c.stroke(path.line(2.5, -4, 4.5, -4)) -c.stroke(path.line(2.5, -2.5, 2.5, -5.5)) -c.stroke(path.line(4.5, -2.5, 4.5, -5.5)) -t.text(2.5, -4, - "a b c d e f g h i j k l m n o p q r s t u v w x y z", - tex.valign.bottom(2)) - -c.stroke(path.line(5, -4, 9, -4)) -c.stroke(path.line(7, -5.5, 7, -2.5)) -t.text(7, -4, "horizontal") -t.text(7, -4, "vertical", tex.direction.vertical) -t.text(7, -4, "rvertical", tex.direction.rvertical) -t.text(7, -4, "upsidedown", tex.direction.upsidedown) -t.text(7.5, -3.5, "45", tex.direction(45)) -t.text(6.5, -3.5, "135", tex.direction(135)) -t.text(6.5, -4.5, "225", tex.direction(225)) -t.text(7.5, -4.5, "315", tex.direction(315)) - -t.text(0, -6, "red", color.rgb.red) -t.text(3, -6, "green", color.rgb.green) -t.text(6, -6, "blue", color.rgb.blue) - -t.text(0, -6.5, "example1", tex.valign.bottom(0.5)) -t.text(4, -6.5, "example2", tex.valign.bottom(0.5), tex.msghandler.hidebuterror) -c.writeEPSfile("test_latex", paperformat="a4") - diff --git a/test/functional/test_tex.py b/test/functional/test_tex.py deleted file mode 100755 index f2b9be7a..00000000 --- a/test/functional/test_tex.py +++ /dev/null @@ -1,58 +0,0 @@ -#!/usr/bin/env python -import sys; sys.path[:0] = ["../.."] - -from pyx import * -from pyx import tex - -c=canvas.canvas() -t=c.insert(tex.tex()) -t.define(r"\def\sayhello{Hello}") -t.text(0, 0, r"\sayhello, world!") -print "width:", t.textwd("Hello, world!") -print "height:", t.textht("Hello, world!") -print "depth:", t.textdp("Hello, world!") -t.text(0, -0.5, "Hello, world!", tex.fontsize.large) -t.text(0, -1.5, - r"\sum_{n=1}^{\infty} {1\over{n^2}} = {{\pi^2}\over 6}", - tex.style.math) - -c.stroke(path.line(5, -0.5, 9, -0.5)) -c.stroke(path.line(5, -1, 9, -1)) -c.stroke(path.line(5, -1.5, 9, -1.5)) -c.stroke(path.line(7, -1.5, 7, 0)) -t.text(7, -0.5, "left aligned") # default is tex.halign.left -t.text(7, -1, "center aligned", tex.halign.center) -t.text(7, -1.5, "right aligned", tex.halign.right) - -c.stroke(path.line(0, -4, 2, -4)) -c.stroke(path.line(0, -2.5, 0, -5.5)) -c.stroke(path.line(2, -2.5, 2, -5.5)) -t.text(0, -4, - "a b c d e f g h i j k l m n o p q r s t u v w x y z", - tex.valign.top(2)) -c.stroke(path.line(2.5, -4, 4.5, -4)) -c.stroke(path.line(2.5, -2.5, 2.5, -5.5)) -c.stroke(path.line(4.5, -2.5, 4.5, -5.5)) -t.text(2.5, -4, - "a b c d e f g h i j k l m n o p q r s t u v w x y z", - tex.valign.bottom(2)) - -c.stroke(path.line(5, -4, 9, -4)) -c.stroke(path.line(7, -5.5, 7, -2.5)) -t.text(7, -4, "horizontal") -t.text(7, -4, "vertical", tex.direction.vertical) -t.text(7, -4, "rvertical", tex.direction.rvertical) -t.text(7, -4, "upsidedown", tex.direction.upsidedown) -t.text(7.5, -3.5, "45", tex.direction(45)) -t.text(6.5, -3.5, "135", tex.direction(135)) -t.text(6.5, -4.5, "225", tex.direction(225)) -t.text(7.5, -4.5, "315", tex.direction(315)) - -t.text(0, -6, "red", color.rgb.red) -t.text(3, -6, "green", color.rgb.green) -t.text(6, -6, "blue", color.rgb.blue) - -t.text(0, -6.5, "example1", tex.valign.bottom(0.5)) -t.text(4, -6.5, "example2", tex.valign.bottom(0.5), tex.msghandler.hidebuterror) -c.writeEPSfile("test_tex", paperformat="a4") - -- 2.11.4.GIT