diff options
Diffstat (limited to 'tests/QtOpenGL')
-rw-r--r-- | tests/QtOpenGL/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/QtOpenGL/qglwidget_test.py | 18 |
2 files changed, 19 insertions, 0 deletions
diff --git a/tests/QtOpenGL/CMakeLists.txt b/tests/QtOpenGL/CMakeLists.txt index 3064edfbc..7c7098535 100644 --- a/tests/QtOpenGL/CMakeLists.txt +++ b/tests/QtOpenGL/CMakeLists.txt @@ -1,3 +1,4 @@ if(${QTVERSION} VERSION_GREATER 4.6.9) PYSIDE_TEST(qglbuffer_test.py) endif() +PYSIDE_TEST(qglwidget_test.py) diff --git a/tests/QtOpenGL/qglwidget_test.py b/tests/QtOpenGL/qglwidget_test.py new file mode 100644 index 000000000..515b8f52b --- /dev/null +++ b/tests/QtOpenGL/qglwidget_test.py @@ -0,0 +1,18 @@ +import unittest +from PySide.QtGui import * +from PySide.QtOpenGL import * + +class TestQGLWidget (unittest.TestCase): + def testIt(self): + """Just test if the bindTexture(*, GLenum, GLint) methods overloads exists""" + app = QApplication([]) + img = QImage() + w = QGLWidget() + a = w.bindTexture(img, 0, 0) # ok if it throws nothing.. :-) + + + + + +if __name__ == "__main__": + unittest.main() |