This file is indexed.

/usr/lib/python2.7/dist-packages/ubuntuone_credentials/TestWrapperNew.qml is in ubuntuone-credentials-autopilot 14.04+14.04.20140415.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import QtQuick 2.0
import Ubuntu.Components 0.1
import Ubuntu.OnlineAccounts 0.1
import UbuntuOne 1.0


MainView {

    objectName: "mainView"

    applicationName: "Ubuntu One UOA Provider Plugin Tester"

    width: units.gu(100)    
    height: units.gu(100)

    PageStack {
        id: pageStack
        Component.onCompleted: {
            push(dummyPage);
            push(testingPage);
        }
    }
    
    Page {
        id: dummyPage
        objectName: "dummyPage"
        title: i18n.tr("Root page")
        visible: false
        /* property var success: false */

        Rectangle {
            anchors.fill: parent
            color: "green"
        }
        
    }

    Page {
        title: "testing"
        id: testingPage
        objectName: "testingPage"
        visible: false

        Rectangle {
            id: fakeAccount
            objectName: "FakeNewUOAAccount"
            property var accountId: 0
            signal synced

            property string displayName: "" 
            function sync() {
                /* synced() signal is connected to finished on success, so we
                  need to just forward it here */
                synced();
            }

            function updateDisplayName() {
            }
            
            function updateEnabled() {
            }

            /* fake to avoid creating a UOA account */
            property var objectHandle: Qt.createQmlObject('import QtQuick 2.0; Rectangle {}',
                                                         testingPage, 
                                                         "dynamically-created-fakerect");
        }

        Loader {
            id: loader
            property var account: fakeAccount

            anchors.fill: parent

            source: "../../../Main.qml"

            Connections {
                target: loader.item
                onFinished: {
                    /* dummyPage.success = true; */
                    pageStack.pop();
                }
            }

        }

    }
}