on xenial help sign in
extra test
commitd23a6d225228b336dee809a201b6576deebfdebc authorMichael Terry <michael.terry@canonical.com> dateThu 22 Oct 2015, 13:38 (11 years ago) parentc61e603
1 file changed+4
tests/qmltests/Components/tst_PhysicalKeysMapper.qml+4
tests/qmltests/Components/tst_PhysicalKeysMapper.qml+4
@@ -84,6 +84,10 @@ TestCase {
8484 physicalKeysMapper.onKeyPressed({ key: Qt.Key_PowerDown, isAutoRepeat: true}, 600);
8585
8686 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);
8791 }
8892
8993 function test_screenshotButtons_data() {