Skip to content

Commit d663fdd

Browse files
Johnny CarlsonJohnny Carlson
authored andcommitted
qml: add first qml testcase
1 parent 56ede5b commit d663fdd

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/qml/test/tst_onboarding.qml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import "../controls"
2+
import "../controls"
3+
import "../pages/onboarding"
4+
import QtQuick 2.15
5+
import QtTest 1.15
6+
7+
Rectangle {
8+
id: root
9+
width: 640
10+
height: 665
11+
color: Theme.color.background
12+
13+
OnboardingCover {}
14+
15+
TestCase {
16+
id: onboardingFlow
17+
when: windowShown
18+
19+
function test_maths() {
20+
var image = grabImage(root)
21+
image.save("./output.png")
22+
}
23+
}
24+
}

0 commit comments

Comments
 (0)