Merge lp:~rpadovani/ubuntu-calculator-app/1188707 into lp:~ubuntu-calculator-dev/ubuntu-calculator-app/old_trunk

Proposed by Riccardo Padovani
Status: Merged
Approved by: Gustavo Pichorim Boiko
Approved revision: 110
Merged at revision: 116
Proposed branch: lp:~rpadovani/ubuntu-calculator-app/1188707
Merge into: lp:~ubuntu-calculator-dev/ubuntu-calculator-app/old_trunk
Diff against target: 23 lines (+13/-1)
1 file modified
tests/autopilot/ubuntu_calculator_app/tests/test_simple_page.py (+13/-1)
To merge this branch: bzr merge lp:~rpadovani/ubuntu-calculator-app/1188707
Reviewer Review Type Date Requested Status
Gustavo Pichorim Boiko (community) Approve
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
Review via email: mp+175288@code.launchpad.net

Commit message

Added testcase for using precedent calc clicking on it

Description of the change

Added testcase for using precedent calc clicking on it

To post a comment you must log in.
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :
review: Approve (continuous-integration)
Revision history for this message
Gustavo Pichorim Boiko (boiko) wrote :

Looks good.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/autopilot/ubuntu_calculator_app/tests/test_simple_page.py'
2--- tests/autopilot/ubuntu_calculator_app/tests/test_simple_page.py 2013-07-15 21:49:37 +0000
3+++ tests/autopilot/ubuntu_calculator_app/tests/test_simple_page.py 2013-07-17 13:58:26 +0000
4@@ -217,4 +217,16 @@
5
6 # Check if has been deleted
7 label = lambda: self.simple_page.get_calc_label("14")
8- self.assertThat(label, Eventually(Equals(None)))
9\ No newline at end of file
10+ self.assertThat(label, Eventually(Equals(None)))
11+
12+ def test_click_history(self):
13+ """Try to do a calculation using history items"""
14+ # Do the calc
15+ self._tear_off("19+1")
16+
17+ # Clic on calc
18+ calc = self.simple_page.get_calc_label("20")
19+ self.pointing_device.click_object(calc)
20+
21+ self._calculate("+5")
22+ self._assert_result("25")
23\ No newline at end of file

Subscribers

People subscribed via source and target branches