aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-01-18 17:22:03 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:51:47 -0300
commita3cf9b0a3cdf5ced4a12e44240c84ef8696a222b (patch)
treebbb24a7b8bed5a939d5480441e8809d6eb82aa97 /tests
parent3e0b9e52deae29e6e7e463603db9a5f5847e826a (diff)
Fix bug#623 - "QGLWidget.bindTexture(QPixmap, GLenum, GLenum) is missing"
Diffstat (limited to 'tests')
-rw-r--r--tests/QtOpenGL/CMakeLists.txt1
-rw-r--r--tests/QtOpenGL/qglwidget_test.py18
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()