~timo-jyrinki/ubuntu-ui-toolkit/uitk_staging_qt55_API_change

« back to all changes in this revision

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

  • Committer: Tarmac
  • Author(s): Richard Huddie, Leonardo Arias Fonseca, Launchpad Translations on behalf of ubuntu-sdk-team
  • Date: 2015-06-22 12:32:50 UTC
  • mfrom: (1000.34.95 textfield-use-osk)
  • Revision ID: tarmac-20150622123250-bb0r0dquygn794f0
Use the real OSK for keyboard input.

Approved by PS Jenkins bot, Christian Dywan.

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.keyboard.type('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)