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 00000000..f8e846dd Binary files /dev/null and b/testing/tools/ToolHilighter/result.xoj differ diff --git a/testing/tools/ToolImage/ToolImage.py b/testing/tools/ToolImage/ToolImage.py new file mode 100644 index 00000000..36c0d198 --- /dev/null +++ b/testing/tools/ToolImage/ToolImage.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 ToolImage(ToolTest): + def __init__(self, xoj): + ToolTest.__init__(self, xoj) + + def runTest(self): + raise TestNotImplementedException() + diff --git a/testing/tools/ToolImage/__init__.py b/testing/tools/ToolImage/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/testing/tools/ToolRuler/ToolRuler.py b/testing/tools/ToolRuler/ToolRuler.py new file mode 100644 index 00000000..83fe6700 --- /dev/null +++ b/testing/tools/ToolRuler/ToolRuler.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 ToolRuler(ToolTest): + def __init__(self, xoj): + ToolTest.__init__(self, xoj) + + def runTest(self): + raise TestNotImplementedException() + diff --git a/testing/tools/ToolRuler/__init__.py b/testing/tools/ToolRuler/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/testing/tools/ToolSelectObject/ToolSelectObject.py b/testing/tools/ToolSelectObject/ToolSelectObject.py new file mode 100644 index 00000000..652b7798 --- /dev/null +++ b/testing/tools/ToolSelectObject/ToolSelectObject.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 ToolSelectObject(ToolTest): + def __init__(self, xoj): + ToolTest.__init__(self, xoj) + + def runTest(self): + raise TestNotImplementedException() + diff --git a/testing/tools/ToolSelectObject/__init__.py b/testing/tools/ToolSelectObject/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/testing/tools/ToolSelectRange/ToolSelectRange.py b/testing/tools/ToolSelectRange/ToolSelectRange.py new file mode 100644 index 00000000..e6a8d50c --- /dev/null +++ b/testing/tools/ToolSelectRange/ToolSelectRange.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 ToolSelectRange(ToolTest): + def __init__(self, xoj): + ToolTest.__init__(self, xoj) + + def runTest(self): + raise TestNotImplementedException() + diff --git a/testing/tools/ToolSelectRange/__init__.py b/testing/tools/ToolSelectRange/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/testing/tools/ToolSelectRect/ToolSelectRect.py b/testing/tools/ToolSelectRect/ToolSelectRect.py new file mode 100644 index 00000000..682e069c --- /dev/null +++ b/testing/tools/ToolSelectRect/ToolSelectRect.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 ToolSelectRect(ToolTest): + def __init__(self, xoj): + ToolTest.__init__(self, xoj) + + def runTest(self): + raise TestNotImplementedException() + diff --git a/testing/tools/ToolSelectRect/__init__.py b/testing/tools/ToolSelectRect/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/testing/tools/ToolShapeRecognizer/ToolShapeRecognizer.py b/testing/tools/ToolShapeRecognizer/ToolShapeRecognizer.py new file mode 100644 index 00000000..235349a8 --- /dev/null +++ b/testing/tools/ToolShapeRecognizer/ToolShapeRecognizer.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 ToolShapeRecognizer(ToolTest): + def __init__(self, xoj): + ToolTest.__init__(self, xoj) + + def runTest(self): + raise TestNotImplementedException() + diff --git a/testing/tools/ToolShapeRecognizer/__init__.py b/testing/tools/ToolShapeRecognizer/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/testing/tools/ToolTest.py b/testing/tools/ToolTest.py index 9cd64052..31b3979e 100644 --- a/testing/tools/ToolTest.py +++ b/testing/tools/ToolTest.py @@ -18,6 +18,7 @@ class ToolTest(XournalTest): self.xoj.setToolColor(0xff0000) self.xoj.setRulerEnabled(False) self.xoj.setShapeRecognizerEnabled(False) + self.xoj.setCurrentPageBackground(self.xoj.BACKGROUND_TYPE_RULED) def tearDown(self): print 'ToolTest.tearDown' diff --git a/testing/tools/ToolText/ToolText.py b/testing/tools/ToolText/ToolText.py new file mode 100644 index 00000000..8bd298f7 --- /dev/null +++ b/testing/tools/ToolText/ToolText.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 ToolText(ToolTest): + def __init__(self, xoj): + ToolTest.__init__(self, xoj) + + def runTest(self): + raise TestNotImplementedException() + diff --git a/testing/tools/ToolText/__init__.py b/testing/tools/ToolText/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/testing/tools/VerticalTool/VerticalTool.py b/testing/tools/VerticalTool/VerticalTool.py new file mode 100644 index 00000000..9a89d262 --- /dev/null +++ b/testing/tools/VerticalTool/VerticalTool.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 VerticalTool(ToolTest): + def __init__(self, xoj): + ToolTest.__init__(self, xoj) + + def runTest(self): + raise TestNotImplementedException() + diff --git a/testing/tools/VerticalTool/__init__.py b/testing/tools/VerticalTool/__init__.py new file mode 100644 index 00000000..e69de29b