Unit test for bug 995 - "QDeclarativeView.itemAt returns faulty reference. (leading to SEGFAULT)"
This commit is contained in:
parent
846759b324
commit
d86765e535
3 changed files with 26 additions and 0 deletions
|
|
@ -8,6 +8,7 @@ PYSIDE_TEST(bug_847.py)
|
||||||
PYSIDE_TEST(bug_915.py)
|
PYSIDE_TEST(bug_915.py)
|
||||||
PYSIDE_TEST(bug_926.py)
|
PYSIDE_TEST(bug_926.py)
|
||||||
PYSIDE_TEST(bug_951.py)
|
PYSIDE_TEST(bug_951.py)
|
||||||
|
PYSIDE_TEST(bug_995.py)
|
||||||
PYSIDE_TEST(bug_997.py)
|
PYSIDE_TEST(bug_997.py)
|
||||||
PYSIDE_TEST(qdeclarativenetwork_test.py)
|
PYSIDE_TEST(qdeclarativenetwork_test.py)
|
||||||
PYSIDE_TEST(qdeclarativeview_test.py)
|
PYSIDE_TEST(qdeclarativeview_test.py)
|
||||||
|
|
|
||||||
13
tests/QtDeclarative/bug_995.py
Normal file
13
tests/QtDeclarative/bug_995.py
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
from PySide.QtGui import *
|
||||||
|
from PySide.QtDeclarative import *
|
||||||
|
from helper import adjust_filename, UsesQApplication
|
||||||
|
|
||||||
|
app = QApplication([])
|
||||||
|
view = QDeclarativeView(adjust_filename('bug_995.qml', __file__))
|
||||||
|
view.show()
|
||||||
|
view.resize(200, 200)
|
||||||
|
item = view.itemAt(100, 100)
|
||||||
|
|
||||||
|
# it CAN NOT crash here
|
||||||
|
print item
|
||||||
|
|
||||||
12
tests/QtDeclarative/bug_995.qml
Normal file
12
tests/QtDeclarative/bug_995.qml
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
import Qt 4.7
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
width: 100
|
||||||
|
height: 100
|
||||||
|
color: "red"
|
||||||
|
|
||||||
|
Text {
|
||||||
|
text: "Hello World"
|
||||||
|
anchors.centerIn: parent
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue