on xenial help sign in
Change test names to fit convention
ffaf38bJosh Arenson
tests/qmltests/Components/tst_PhysicalKeysMapper.qml+5−5
@@ -57,7 +57,7 @@ Item {
57 onVolumeUpPressedCount = 0;
57 onVolumeUpPressedCount = 0;
58 }
58 }
59
59
60− function test_both_volume_keys_simultaneously() {
60+ function test_BothVolumeKeysSimultaneously() {
61 physicalKeysMapper.onKeyPressed(Qt.Key_VolumeDown);
61 physicalKeysMapper.onKeyPressed(Qt.Key_VolumeDown);
62 physicalKeysMapper.onKeyPressed(Qt.Key_VolumeUp);
62 physicalKeysMapper.onKeyPressed(Qt.Key_VolumeUp);
63
63
@@ -68,14 +68,14 @@ Item {
68 compare(onBothVolumeKeysPressedCount, 1);
68 compare(onBothVolumeKeysPressedCount, 1);
69 }
69 }
70
70
71− function test_long_press_power_button() {
71+ function test_LongPressPowerButton() {
72 physicalKeysMapper.onKeyPressed(Qt.Key_PowerDown);
72 physicalKeysMapper.onKeyPressed(Qt.Key_PowerDown);
73 wait(3000);
73 wait(3000);
74
74
75 compare(onPowerKeyLongPressCount, 1);
75 compare(onPowerKeyLongPressCount, 1);
76 }
76 }
77
77
78− function test_screenshot_buttons() {
78+ function test_ScreenshotButtons() {
79 physicalKeysMapper.onKeyPressed(Qt.Key_PowerDown);
79 physicalKeysMapper.onKeyPressed(Qt.Key_PowerDown);
80 physicalKeysMapper.onKeyPressed(Qt.Key_VolumeDown);
80 physicalKeysMapper.onKeyPressed(Qt.Key_VolumeDown);
81
81
@@ -87,12 +87,12 @@ Item {
87 compare(onVolumeDownPressedCount, 0);
87 compare(onVolumeDownPressedCount, 0);
88 }
88 }
89
89
90− function test_volume_down_button() {
90+ function test_VolumeDownButton() {
91 physicalKeysMapper.onKeyPressed(Qt.Key_VolumeDown);
91 physicalKeysMapper.onKeyPressed(Qt.Key_VolumeDown);
92 compare(onVolumeDownPressedCount, 1);
92 compare(onVolumeDownPressedCount, 1);
93 }
93 }
94
94
95− function test_volume_up_button() {
95+ function test_VolumeUpButton() {
96 physicalKeysMapper.onKeyPressed(Qt.Key_VolumeUp);
96 physicalKeysMapper.onKeyPressed(Qt.Key_VolumeUp);
97 compare(onVolumeUpPressedCount, 1);
97 compare(onVolumeUpPressedCount, 1);
98 }
98 }