~michael-sheldon/ubuntu-keyboard/fix-1407584

« back to all changes in this revision

Viewing changes to tests/autopilot/ubuntu_keyboard/tests/test_keyboard.py

  • Committer: CI Train Bot
  • Author(s): Michael Sheldon
  • Date: 2014-12-09 15:37:31 UTC
  • mfrom: (256.1.3 fix-1398503)
  • Revision ID: ci-train-bot@canonical.com-20141209153731-n738gq4dayayukeb
Disables automatic insertion of space characters after punctuation except when punctuation has been added by double space. Fixes: #1398503
Approved by: PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
316
316
        self.assertThat(text_area.text, Eventually(Equals('abcA')))
317
317
 
318
318
    def test_shift_state_entered_after_fullstop(self):
319
 
        """After typing a fullstop the keyboard state must automatically
320
 
        enter the shifted state.
 
319
        """After typing a fullstop followed by a space the keyboard state must
 
320
        automatically enter the shifted state.
321
321
 
322
322
        """
323
323
        text_area = self.launch_test_input_area(input_hints=['Qt.ImhNoPredictiveText'])
325
325
        keyboard = Keyboard()
326
326
        self.addCleanup(keyboard.dismiss)
327
327
 
328
 
        keyboard.type("abc.")
 
328
        keyboard.type("abc. ")
329
329
 
330
330
        self.assertThat(
331
331
            text_area.text,
332
 
            Eventually(Equals("abc."))
 
332
            Eventually(Equals("abc. "))
333
333
        )
334
334
 
335
335
        self.assertThat(
346
346
        keyboard = Keyboard()
347
347
        self.addCleanup(keyboard.dismiss)
348
348
 
349
 
        keyboard.type("Hello my friend.\b")
 
349
        keyboard.type("Hello my friend. \b\b")
350
350
 
351
351
        self.assertThat(
352
352
            text_area.text,