on xenial help sign in
Change sleeps to waits in tests. Change wait time to correct units.
7c6231dJosh Arenson
tests/qmltests/Components/tst_PhysicalKeysFilter.qml+2−2
@@ -64,7 +64,7 @@ Item {
64 compare(onBothVolumeKeysPressedCount, 1);
64 compare(onBothVolumeKeysPressedCount, 1);
65
65
66 // Simulate holding the keys down
66 // Simulate holding the keys down
67− sleep(3);
67+ wait(3000);
68 compare(onBothVolumeKeysPressedCount, 1);
68 compare(onBothVolumeKeysPressedCount, 1);
69 }
69 }
70
70
@@ -82,7 +82,7 @@ Item {
82 compare(onScreenshotPressedCount, 1);
82 compare(onScreenshotPressedCount, 1);
83 compare(onVolumeDownPressedCount, 0);
83 compare(onVolumeDownPressedCount, 0);
84
84
85− sleep(3);
85+ wait(3000);
86 compare(onScreenshotPressedCount, 1);
86 compare(onScreenshotPressedCount, 1);
87 compare(onVolumeDownPressedCount, 0);
87 compare(onVolumeDownPressedCount, 0);
88 }
88 }