aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtDeclarative/bug_451.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtDeclarative/bug_451.qml')
-rw-r--r--tests/QtDeclarative/bug_451.qml26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/QtDeclarative/bug_451.qml b/tests/QtDeclarative/bug_451.qml
new file mode 100644
index 000000000..fea810818
--- /dev/null
+++ b/tests/QtDeclarative/bug_451.qml
@@ -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
+ }
+
+}