aboutsummaryrefslogtreecommitdiff
path: root/tests/client/script_qmltest.py
diff options
context:
space:
mode:
authorRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-10-09 15:44:25 -0300
committerRenato Araujo Oliveira Filho <renato.filho@canonical.com>2012-10-09 15:44:25 -0300
commitc07f87e35062e39e9d4b3b978362dbf94dd36fbb (patch)
treecd6a396074acc4049f694610d0519c1558bdc796 /tests/client/script_qmltest.py
parenta03e7e775a9751f87efb8fd7acf226b5eb25f4e3 (diff)
downloadqmenumodel-c07f87e35062e39e9d4b3b978362dbf94dd36fbb.tar.gz
qmenumodel-c07f87e35062e39e9d4b3b978362dbf94dd36fbb.tar.bz2
qmenumodel-c07f87e35062e39e9d4b3b978362dbf94dd36fbb.zip
Fixed crash during model destruction in QML.
Diffstat (limited to 'tests/client/script_qmltest.py')
-rwxr-xr-xtests/client/script_qmltest.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/client/script_qmltest.py b/tests/client/script_qmltest.py
new file mode 100755
index 0000000..385256c
--- /dev/null
+++ b/tests/client/script_qmltest.py
@@ -0,0 +1,12 @@
+#!/usr/bin/python2.7
+
+import time
+from menuscript import Script, ActionList, MENU_OBJECT_PATH
+
+al = ActionList(MENU_OBJECT_PATH)
+al.appendItem("Menu0", "Menu0")
+al.appendItem("Menu1", "Menu1")
+
+t = Script.create(al)
+t.run()
+