presentation
andreasb123 15 years ago
parent b42ea59a6b
commit 7cd7185fca
  1. 23
      testing/tools/ToolEraser/ToolEraser.py
  2. 0
      testing/tools/ToolEraser/__init__.py
  3. 26
      testing/tools/ToolHilighter/ToolHilighter.py
  4. 0
      testing/tools/ToolHilighter/__init__.py
  5. BIN
      testing/tools/ToolHilighter/result.xoj
  6. 23
      testing/tools/ToolImage/ToolImage.py
  7. 0
      testing/tools/ToolImage/__init__.py
  8. 23
      testing/tools/ToolRuler/ToolRuler.py
  9. 0
      testing/tools/ToolRuler/__init__.py
  10. 23
      testing/tools/ToolSelectObject/ToolSelectObject.py
  11. 0
      testing/tools/ToolSelectObject/__init__.py
  12. 23
      testing/tools/ToolSelectRange/ToolSelectRange.py
  13. 0
      testing/tools/ToolSelectRange/__init__.py
  14. 23
      testing/tools/ToolSelectRect/ToolSelectRect.py
  15. 0
      testing/tools/ToolSelectRect/__init__.py
  16. 23
      testing/tools/ToolShapeRecognizer/ToolShapeRecognizer.py
  17. 0
      testing/tools/ToolShapeRecognizer/__init__.py
  18. 1
      testing/tools/ToolTest.py
  19. 23
      testing/tools/ToolText/ToolText.py
  20. 0
      testing/tools/ToolText/__init__.py
  21. 23
      testing/tools/VerticalTool/VerticalTool.py
  22. 0
      testing/tools/VerticalTool/__init__.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()

@ -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)

@ -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()

@ -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()

@ -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()

@ -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()

@ -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()

@ -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()

@ -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'

@ -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()

@ -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()
Loading…
Cancel
Save