From 7cd7185fcaf9a7cea1b3d9287e86f728770d5bb3 Mon Sep 17 00:00:00 2001 From: andreasb123 Date: Thu, 7 Apr 2011 19:13:04 +0000 Subject: [PATCH] git-svn-id: https://xournal.svn.sourceforge.net/svnroot/xournal/trunk/xournalpp@116 9fe2bcd3-a095-4d8b-a836-9b85dc8d7627 --- testing/tools/ToolEraser/ToolEraser.py | 23 ++++++++++++++++ testing/tools/ToolEraser/__init__.py | 0 testing/tools/ToolHilighter/ToolHilighter.py | 26 ++++++++++++++++++ testing/tools/ToolHilighter/__init__.py | 0 testing/tools/ToolHilighter/result.xoj | Bin 0 -> 2335 bytes testing/tools/ToolImage/ToolImage.py | 23 ++++++++++++++++ testing/tools/ToolImage/__init__.py | 0 testing/tools/ToolRuler/ToolRuler.py | 23 ++++++++++++++++ testing/tools/ToolRuler/__init__.py | 0 .../ToolSelectObject/ToolSelectObject.py | 23 ++++++++++++++++ testing/tools/ToolSelectObject/__init__.py | 0 .../tools/ToolSelectRange/ToolSelectRange.py | 23 ++++++++++++++++ testing/tools/ToolSelectRange/__init__.py | 0 .../tools/ToolSelectRect/ToolSelectRect.py | 23 ++++++++++++++++ testing/tools/ToolSelectRect/__init__.py | 0 .../ToolShapeRecognizer.py | 23 ++++++++++++++++ testing/tools/ToolShapeRecognizer/__init__.py | 0 testing/tools/ToolTest.py | 1 + testing/tools/ToolText/ToolText.py | 23 ++++++++++++++++ testing/tools/ToolText/__init__.py | 0 testing/tools/VerticalTool/VerticalTool.py | 23 ++++++++++++++++ testing/tools/VerticalTool/__init__.py | 0 22 files changed, 234 insertions(+) create mode 100644 testing/tools/ToolEraser/ToolEraser.py create mode 100644 testing/tools/ToolEraser/__init__.py create mode 100644 testing/tools/ToolHilighter/ToolHilighter.py create mode 100644 testing/tools/ToolHilighter/__init__.py create mode 100644 testing/tools/ToolHilighter/result.xoj create mode 100644 testing/tools/ToolImage/ToolImage.py create mode 100644 testing/tools/ToolImage/__init__.py create mode 100644 testing/tools/ToolRuler/ToolRuler.py create mode 100644 testing/tools/ToolRuler/__init__.py create mode 100644 testing/tools/ToolSelectObject/ToolSelectObject.py create mode 100644 testing/tools/ToolSelectObject/__init__.py create mode 100644 testing/tools/ToolSelectRange/ToolSelectRange.py create mode 100644 testing/tools/ToolSelectRange/__init__.py create mode 100644 testing/tools/ToolSelectRect/ToolSelectRect.py create mode 100644 testing/tools/ToolSelectRect/__init__.py create mode 100644 testing/tools/ToolShapeRecognizer/ToolShapeRecognizer.py create mode 100644 testing/tools/ToolShapeRecognizer/__init__.py create mode 100644 testing/tools/ToolText/ToolText.py create mode 100644 testing/tools/ToolText/__init__.py create mode 100644 testing/tools/VerticalTool/VerticalTool.py create mode 100644 testing/tools/VerticalTool/__init__.py diff --git a/testing/tools/ToolEraser/ToolEraser.py b/testing/tools/ToolEraser/ToolEraser.py new file mode 100644 index 00000000..3530851d --- /dev/null +++ b/testing/tools/ToolEraser/ToolEraser.py @@ -0,0 +1,23 @@ +# Xournal++ +# +# Testclass for Undo / Redohandler +# +# @author Xournal Team +# http://xournal.sf.net +# +# @license GPL + +from tools.ToolTest import ToolTest +import os + +# TODO: remove if implemented +from TestNotImplementedException import TestNotImplementedException + + +class ToolEraser(ToolTest): + def __init__(self, xoj): + ToolTest.__init__(self, xoj) + + def runTest(self): + raise TestNotImplementedException() + diff --git a/testing/tools/ToolEraser/__init__.py b/testing/tools/ToolEraser/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/testing/tools/ToolHilighter/ToolHilighter.py b/testing/tools/ToolHilighter/ToolHilighter.py new file mode 100644 index 00000000..ac4db675 --- /dev/null +++ b/testing/tools/ToolHilighter/ToolHilighter.py @@ -0,0 +1,26 @@ +# Xournal++ +# +# Testclass for Undo / Redohandler +# +# @author Xournal Team +# http://xournal.sf.net +# +# @license GPL + +from tools.ToolTest import ToolTest +import os + +class ToolHilighter(ToolTest): + def __init__(self, xoj): + ToolTest.__init__(self, xoj) + + def runTest(self): + self.xoj.setSelectedTool(self.xoj.TOOL_HILIGHTER) + self.xoj.setToolSize(self.xoj.TOOL_SIZE_FINE) + self.doTestInput() + + path = os.path.realpath(__file__ + '/../result.xoj') + self.checkContents(path) + + + diff --git a/testing/tools/ToolHilighter/__init__.py b/testing/tools/ToolHilighter/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/testing/tools/ToolHilighter/result.xoj b/testing/tools/ToolHilighter/result.xoj new file mode 100644 index 0000000000000000000000000000000000000000..f8e846dd4fc44ca5df10ab8b264c17bd1b25a6b8 GIT binary patch literal 2335 zcmV+)3E=i0iwFP!0000019ewjcdAMje80bf=^GnR)qEVIKyZC>4|*A3fbHDi_R;(tJR4Hacl?&9A+j~P+6JnrMPH2!TA zacpeLGXIZd{h*o!&dYd}9oDg##-;Vks;d9`l^^0$5}$u3Z_Uy4Y(IC`Sp$E=m)FhX z>l#-bTDS1;gU(dTZ=v&0GDYw-Wi@Rm-PyyVZNo7eRb}{+eWuTRUt%4fn@cK3Ns@dmd-9=&SL2CcRT|;ufpV;?t`T@}ym;=G#;L6x7A>8uZ3T)q8Sh+1u`Bs%ag3(#*<02brIJ6Z z(M+Avbd$@=u~YX)*W;#GeZJd4d#O&Ub73l)7Eak|+2z%)ALI6Oyk7^~g)^Ex`n~>A zt@57VJI7)Fz43i5Z{MQ#QCOc-E1dRYtJVLu8$9IsaF*s#Rv#Zdr}NT^z81;C+2&y^ zPM+v5p4z)b++Lpt&8ryC_fh+@l%uDmINIeptFLCA+i3Kz##44>t>QLnq{G`K@$%MT zaI!Yb`T8vzhV5`TFF!i&p??1Co*Pp;YLxus+r@bB{ybQPpYhb%b(<&et+a;y_H}># zaxUM)=hoox%s!4|ek)dsYm{bAY&-SwA!5mX_@!F8*Kf=taUQ+zSX2xex8u;-M$)<+ zTj!+TN+#)NdC5Q2CW~@u<#}UZ*Ym^ZWw~nKrr9v>W|kAy2V%W!&%O@Ht&qva-FKRC zUT*ylE560a$n9*~U)y8<_08fTdw)7aqy*)Kc zrRqV@E9#@X=(N`Jwcl<}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