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:
renatofilho 2010-11-05 16:33:36 -03:00
commit 5371e403ff
4 changed files with 92 additions and 38 deletions

View 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
}
}