@@ -33,9 +33,9 @@ class TestHud(UnityTestCase):
33 scenarios = _get_device_emulation_scenarios()
33 scenarios = _get_device_emulation_scenarios()
35 def test_show_hud_button_appears(self):
35 def test_show_hud_button_appears(self):
36− """Swiping up while an app is active must show the 'show hud' button
36+ """Swiping up while an app is active must show the 'show hud' button.
37− and it must disappear when releasing the mouse again somewhere
37+ The button must disappear not opening the HUD when releasing the
38− on the screen.
38+ mouse again somewhere on the screen except on the button itself.
41 self.launch_unity()
41 self.launch_unity()
@@ -56,6 +56,7 @@ class TestHud(UnityTestCase):
56 self.assertThat(hud_show_button.opacity, Eventually(Equals(1.0)))
56 self.assertThat(hud_show_button.opacity, Eventually(Equals(1.0)))
57 self.touch.release();
57 self.touch.release();
58 self.assertThat(hud_show_button.opacity, Eventually(Equals(0.0)))
58 self.assertThat(hud_show_button.opacity, Eventually(Equals(0.0)))
59+ self.assertThat(hud.shown, Equals(False))
60 def test_show_hud_appears(self):
61 def test_show_hud_appears(self):
61 """Releasing the touch on the 'show hud' button must display the hud.
62 """Releasing the touch on the 'show hud' button must display the hud.