Merge lp:~om26er/mediaplayer-app/skip_if_phone into lp:mediaplayer-app

Proposed by Omer Akram
Status: Merged
Approved by: Renato Araujo Oliveira Filho
Approved revision: 93
Merged at revision: 91
Proposed branch: lp:~om26er/mediaplayer-app/skip_if_phone
Merge into: lp:mediaplayer-app
Diff against target: 38 lines (+5/-2)
1 file modified
tests/autopilot/mediaplayer_app/tests/test_player_with_video.py (+5/-2)
To merge this branch: bzr merge lp:~om26er/mediaplayer-app/skip_if_phone
Reviewer Review Type Date Requested Status
Renato Araujo Oliveira Filho (community) Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+165880@code.launchpad.net

Commit message

Skip tests interacting with the seekbar as its only not visible in landscape mode on phones and we don't have a way to force landscape.

Description of the change

Skip tests interacting with the seekbar as its only not visible in landscape mode on phones and we don't have a way to force landscape.

To post a comment you must log in.
Revision history for this message
Omer Akram (om26er) wrote :

reported bug 1184608 for the ability to force landscape mode.

92. By Omer Akram

oops, forgot to import

93. By Omer Akram

fix

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

looks good now.

Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'tests/autopilot/mediaplayer_app/tests/test_player_with_video.py'
--- tests/autopilot/mediaplayer_app/tests/test_player_with_video.py 2013-05-23 21:47:41 +0000
+++ tests/autopilot/mediaplayer_app/tests/test_player_with_video.py 2013-05-28 13:05:31 +0000
@@ -10,6 +10,8 @@
10from __future__ import absolute_import10from __future__ import absolute_import
1111
12from autopilot.matchers import Eventually12from autopilot.matchers import Eventually
13from autopilot.platform import model
14from testtools import skipIf
13from testtools.matchers import Equals, GreaterThan15from testtools.matchers import Equals, GreaterThan
1416
15from unittest import skip17from unittest import skip
@@ -64,7 +66,7 @@
64 self.assertProperty(player, playing=True, paused=False)66 self.assertProperty(player, playing=True, paused=False)
65 self.assertProperty(playback_buttom, icon="pause")67 self.assertProperty(playback_buttom, icon="pause")
6668
6769 @skipIf(model() == 'Nexus 4' or model() == 'Galaxy Nexus', 'Screen width not enough for seekbar')
68 def test_scene_selector_visibility(self):70 def test_scene_selector_visibility(self):
69 self.show_controls()71 self.show_controls()
70 self.pause_video()72 self.pause_video()
@@ -114,6 +116,7 @@
114 self.assertThat(selector.currentIndex, Eventually(Equals(2)))116 self.assertThat(selector.currentIndex, Eventually(Equals(2)))
115 self.assertProperty(time_line, value=1.107)117 self.assertProperty(time_line, value=1.107)
116118
119 @skipIf(model() == 'Nexus 4' or model() == 'Galaxy Nexus', 'Screen width not enough for seekbar')
117 def test_time_display_behavior(self):120 def test_time_display_behavior(self):
118 self.show_controls()121 self.show_controls()
119 self.pause_video()122 self.pause_video()
@@ -141,7 +144,7 @@
141 """144 """
142 self.assertEqual(time_label.text[0:9], "- 00:00:0")145 self.assertEqual(time_label.text[0:9], "- 00:00:0")
143146
144147 @skipIf(model() == 'Nexus 4' or model() == 'Galaxy Nexus', 'Screen width not enough for seekbar')
145 def test_show_controls_at_end(self):148 def test_show_controls_at_end(self):
146 self.show_controls()149 self.show_controls()
147 time_line = self.main_window.get_object("Slider", "TimeLine.Slider")150 time_line = self.main_window.get_object("Slider", "TimeLine.Slider")

Subscribers

People subscribed via source and target branches