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
1=== modified file 'tests/autopilot/mediaplayer_app/tests/test_player_with_video.py'
2--- tests/autopilot/mediaplayer_app/tests/test_player_with_video.py 2013-05-23 21:47:41 +0000
3+++ tests/autopilot/mediaplayer_app/tests/test_player_with_video.py 2013-05-28 13:05:31 +0000
4@@ -10,6 +10,8 @@
5 from __future__ import absolute_import
6
7 from autopilot.matchers import Eventually
8+from autopilot.platform import model
9+from testtools import skipIf
10 from testtools.matchers import Equals, GreaterThan
11
12 from unittest import skip
13@@ -64,7 +66,7 @@
14 self.assertProperty(player, playing=True, paused=False)
15 self.assertProperty(playback_buttom, icon="pause")
16
17-
18+ @skipIf(model() == 'Nexus 4' or model() == 'Galaxy Nexus', 'Screen width not enough for seekbar')
19 def test_scene_selector_visibility(self):
20 self.show_controls()
21 self.pause_video()
22@@ -114,6 +116,7 @@
23 self.assertThat(selector.currentIndex, Eventually(Equals(2)))
24 self.assertProperty(time_line, value=1.107)
25
26+ @skipIf(model() == 'Nexus 4' or model() == 'Galaxy Nexus', 'Screen width not enough for seekbar')
27 def test_time_display_behavior(self):
28 self.show_controls()
29 self.pause_video()
30@@ -141,7 +144,7 @@
31 """
32 self.assertEqual(time_label.text[0:9], "- 00:00:0")
33
34-
35+ @skipIf(model() == 'Nexus 4' or model() == 'Galaxy Nexus', 'Screen width not enough for seekbar')
36 def test_show_controls_at_end(self):
37 self.show_controls()
38 time_line = self.main_window.get_object("Slider", "TimeLine.Slider")

Subscribers

People subscribed via source and target branches