/usr/share/maliit/plugins/com/ubuntu/api_tests.qml is in ubuntu-keyboard-data 0.99.trunk.phablet2+14.04.20140415-0ubuntu1.
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 | import QtQuick 2.0
import QtTest 1.0
import Ubuntu.Components 0.1
/*
tests for API exposed to the app in QML
*/
MainView {
TextField {
id: textField
}
TestCase {
when: windowShown
function test_keyboardRect() {
compare(Qt.inputMethod.keyboardRectangle.height, 0)
sleep(3000)
// Qt.inputMethod.show();
textField.forceActiveFocus()
sleep(3000)
print("keyboard rect is", Qt.inputMethod.keyboardRectangle)
verify(Qt.inputMethod.keyboardRectangle.height > 0)
Qt.inputMethod.hide();
sleep(1000)
compare(Qt.inputMethod.keyboardRectangle.height, 0)
}
}
}
|