← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1311907] Re: gallery.test_textinput.WriteAndClearTextInputTestCase.test_write_on_textfield_must_update_text fails for certain regional formats

 

This bug was fixed in the package ubuntu-ui-toolkit -
0.1.46+14.10.20140502.6-0ubuntu1

---------------
ubuntu-ui-toolkit (0.1.46+14.10.20140502.6-0ubuntu1) utopic; urgency=low

  [ Tarmac ]
  * [ Zoltán Balogh]   * Skip tests only for powerpc   [ Christian Dywan
    ]   * Use locale format specifier in textfield_numbers. (LP:
    #1311907, #1283236, #1285958, #1124071, #1256424, #1276172,
    #1228042, #1183255, #1283212, #1168914, #1273187, #1276821,
    #1308086, #1288937, #1292601)

  [ Zoltán Balogh ]
  * [ Zoltán Balogh]   * Skip tests only for powerpc   [ Christian Dywan
    ]   * Use locale format specifier in textfield_numbers. (LP:
    #1311907, #1283236, #1285958, #1124071, #1256424, #1276172,
    #1228042, #1183255, #1283212, #1168914, #1273187, #1276821,
    #1308086, #1288937, #1292601)

  [ tpeeters ]
  * [ Zoltán Balogh]   * Skip tests only for powerpc   [ Christian Dywan
    ]   * Use locale format specifier in textfield_numbers. (LP:
    #1311907, #1283236, #1285958, #1124071, #1256424, #1276172,
    #1228042, #1183255, #1283212, #1168914, #1273187, #1276821,
    #1308086, #1288937, #1292601)
 -- Ubuntu daily release <ps-jenkins@xxxxxxxxxxxxxxxxxxx>   Fri, 02 May 2014 16:31:41 +0000

** Changed in: ubuntu-ui-toolkit (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1311907

Title:
  gallery.test_textinput.WriteAndClearTextInputTestCase.test_write_on_textfield_must_update_text
  fails for certain regional formats

Status in Ubuntu UI Toolkit:
  Fix Committed
Status in “ubuntu-ui-toolkit” package in Ubuntu:
  Fix Released

Bug description:
  I am running a relatively fresh installation of trusty inside vmware on a mac.
  I branched staging, compiled it and then ran the test as shown below. I get the same error when I run it with autopilot and autopilot3. Apparently a dot is accepted as input when it should accept only integers.

  tim@trusty:~/dev/ubuntu-ui-toolkit/staging$ source export_modules_dir.sh
  tim@trusty:~/dev/ubuntu-ui-toolkit/staging$ cd tests/autopilot/
  tim@trusty:~/dev/ubuntu-ui-toolkit/staging/tests/autopilot$ autopilot run ubuntuuitoolkit.tests.gallery.test_textinput.WriteAndClearTextInputTestCase.test_write_on_textfield_must_update_text
  Loading tests from: /home/tim/dev/ubuntu-ui-toolkit/staging/tests/autopilot

  Tests running...
  ======================================================================
  FAIL: ubuntuuitoolkit.tests.gallery.test_textinput.WriteAndClearTextInputTestCase.test_write_on_textfield_must_update_text(only integers textfield)
  ----------------------------------------------------------------------
  Empty attachments:
    /var/log/syslog
    process-stdout

  process-return-code: {{{-15}}}
  process-stderr: {{{
  Testability driver loaded. Wire protocol version is "1.4".
  unity::action::ActionManager::ActionManager(QObject*):
   Could not determine application identifier. HUD will not work properly.
   Provide your application identifier in $APP_ID environment variable.

  ** (qmlscene:12786): WARNING **: Unable to register app: GDBus.Error:org.freedesktop.DBus.Error.InvalidArgs: Invalid application ID
  }}}

  Traceback (most recent call last):
    File "/home/tim/dev/ubuntu-ui-toolkit/staging/tests/autopilot/ubuntuuitoolkit/tests/gallery/test_textinput.py", line 48, in test_write_on_textfield_must_update_text
      self.assertEqual(self.expected_text, textfield.text)
    File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 321, in assertEqual
      self.assertThat(observed, matcher, message)
    File "/usr/lib/python2.7/dist-packages/testtools/testcase.py", line 406, in assertThat
      raise mismatch_error
  MismatchError: '-100123' != u'-100.123'

  Ran 3 tests in 20.788s
  FAILED (failures=1)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1311907/+subscriptions