Debian Codegraph @

tests/online-accounts-ui/tst_qmlplugin/tst_AccountCreationPage.qml.in

raw
1 import QtQuick 2.9
2 import QtTest 1.0
3
4 Item {
5 property string localQmlPluginPath: "@CMAKE_CURRENT_BINARY_DIR@"
6 property string systemQmlPluginPath: "@CMAKE_CURRENT_BINARY_DIR@"
7 width: 200
8 height: 200
9
10 Component {
11 id: pageComponent
12 AccountCreationPage {}
13 }
14
15 TestCase {
16 name: "AccountCreationPage"
17
18 function test_flickable() {
19 var page = pageComponent.createObject(null, {
20 "providerId": "testPlugin" })
21 verify(page.flickable != null)
22 page.destroy()
23 }
24
25 function test_fallback() {
26 localQmlPluginPath = "/dummy/path/"
27 var page = pageComponent.createObject(null, {
28 "providerId": "testPlugin" })
29 // If flickable is set then the plugin was loaded correctly
30 verify(page.flickable != null)
31 page.destroy()
32 }
33 }
34 }