Comment 1 for bug 1346952

Revision history for this message
Daniel d'Andrada (dandrader) wrote :

The crash happens because the autopilot test sends key events very fast, one right next to the other. If we change it so that it waits a bit before generating the next key event, there's no crash:

--- /usr/lib/python2.7/dist-packages/ubuntu_html5_ui_toolkit/tests/__init__.py 2014-07-23 13:16:36.000000000 +0000
+++ /usr/lib/python2.7/dist-packages/ubuntu_html5_ui_toolkit/tests/__init__modified.py 2014-07-23 13:17:28.000000000 +0000
@@ -187,7 +187,7 @@
         addressbar = self.get_addressbar()
         self.assertThat(addressbar.activeFocus, Eventually(Equals(True)))

- self.keyboard.type(url, 0.001)
+ self.keyboard.type(url, 0.2)

         self.pointer.click_object(self.get_webview())
         time.sleep(1)

With that patch there's no crash but the typing is too slow (to the tests take way longer to complete). Some inbetween value should still work. Haven't tried any other though.