~canonical-platform-qa/ubuntu-ui-toolkit/textfield-use-osk

« back to all changes in this revision

Viewing changes to tests/autopilot/ubuntuuitoolkit/tests/gallery/test_textinput.py

  • Committer: Richard Huddie
  • Date: 2015-06-17 15:06:48 UTC
  • Revision ID: richard.huddie@canonical.com-20150617150648-al232icw5g2mht0g
Fixes for failing tests. Also wait 5 seconds after re-launching maliit-server to allow it to be ready.

Show diffs side-by-side

added added

removed removed

Lines of Context:
92
92
        self.assertFalse(textfield_disabled.enabled)
93
93
 
94
94
        disabled_text = textfield_disabled.text
95
 
        self.pointing_device.click_object(textfield_disabled)
96
 
        textfield_disabled.write('This should not be written')
 
95
        self.assertRaises(AssertionError,
 
96
                          textfield_disabled.write,
 
97
                          'This should not be written')
97
98
        self.assertEqual(disabled_text, textfield_disabled.text)