mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 12:00:13 +01:00
new unit tests
git-svn-id: https://svn.wxwidgets.org/svn/wx/sandbox/trunk/Phoenix@66193 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
31
unittests/test_mousestate.py
Normal file
31
unittests/test_mousestate.py
Normal file
@@ -0,0 +1,31 @@
|
||||
import unittest2
|
||||
import wx
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
class MouseState(unittest2.TestCase):
|
||||
|
||||
def test_MouseState(self):
|
||||
ms = wx.MouseState()
|
||||
ms.controlDown
|
||||
ms.shiftDown
|
||||
ms.altDown
|
||||
ms.cmdDown
|
||||
|
||||
ms.x
|
||||
ms.y
|
||||
ms.leftIsDown
|
||||
ms.middleIsDown
|
||||
ms.rightIsDown
|
||||
ms.aux1IsDown
|
||||
ms.aux2IsDown
|
||||
ms.Position
|
||||
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest2.main()
|
||||
Reference in New Issue
Block a user