Shell test: mock applicationArguments context property
commit38c37fbf3032f33c596fd7ca04eb342458ea5cca
authorDaniel d'Andrada <daniel.dandrada@canonical.com>
dateWed 24 Jul 2013, 09:10 (13 years ago)
parent919e196
tests/qmltests/tst_Shell.qml+24−2
@@ -23,8 +23,30 @@ import Unity.Test 0.1 as UT
2323
2424import "../.."
2525
26−Shell {
27− id: shell
26+Item {
27+ width: shell.width
28+ height: shell.height
29+
30+ QtObject {
31+ id: applicationArguments
32+
33+ function hasGeometry() {
34+ return false;
35+ }
36+
37+ function width() {
38+ return 0;
39+ }
40+
41+ function height() {
42+ return 0;
43+ }
44+ }
45+
46+ Shell {
47+ id: shell
48+ }
49+
2850 UT.UnityTestCase {
2951 name: "Shell"
3052 when: windowShown