on xenial help sign in
extra test
d23a6d2Michael Terry
tests/qmltests/Components/tst_PhysicalKeysMapper.qml+4
@@ -84,6 +84,10 @@ TestCase {
84 physicalKeysMapper.onKeyPressed({ key: Qt.Key_PowerDown, isAutoRepeat: true}, 600);
84 physicalKeysMapper.onKeyPressed({ key: Qt.Key_PowerDown, isAutoRepeat: true}, 600);
85
85
86 compare(powerSpy.count, 1);
86 compare(powerSpy.count, 1);
87+
88+ // Confirm we only emit once
89+ physicalKeysMapper.onKeyPressed({ key: Qt.Key_PowerDown, isAutoRepeat: true}, 601);
90+ compare(powerSpy.count, 1);
87 }
91 }
88
92
89 function test_screenshotButtons_data() {
93 function test_screenshotButtons_data() {