Created unit test for bug #451.
Reviewer: Hugo Parente Lima <hugo.pl@gmail.com>
Luciano Wolf <luciano.wolf@openbossa.org>
This commit is contained in:
parent
a029d217c2
commit
5371e403ff
4 changed files with 92 additions and 38 deletions
26
tests/QtDeclarative/bug_451.qml
Normal file
26
tests/QtDeclarative/bug_451.qml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import Qt 4.7
|
||||
|
||||
Rectangle {
|
||||
id: page
|
||||
|
||||
function simpleFunction() {
|
||||
python.called = "simpleFunction"
|
||||
}
|
||||
|
||||
function oneArgFunction(x) {
|
||||
python.called = "oneArgFunction"
|
||||
python.arg1 = x
|
||||
}
|
||||
|
||||
function twoArgFunction(x, y) {
|
||||
python.called = "twoArgFunction"
|
||||
python.arg1 = x
|
||||
python.arg2 = y
|
||||
}
|
||||
|
||||
function returnFunction() {
|
||||
python.called = "returnFunction"
|
||||
return 42
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue