diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-01-18 17:22:03 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:51:47 -0300 |
commit | a3cf9b0a3cdf5ced4a12e44240c84ef8696a222b (patch) | |
tree | bbb24a7b8bed5a939d5480441e8809d6eb82aa97 /tests/QtOpenGL | |
parent | 3e0b9e52deae29e6e7e463603db9a5f5847e826a (diff) |
Fix bug#623 - "QGLWidget.bindTexture(QPixmap, GLenum, GLenum) is missing"
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() |