Fix the discrepancy between SendBaseModeWeb and Web objects' separate cur_history_id attibutes, ensuring that when we call web.error404() we send a new history_id integer for communicating back to the frontend. Add tests for this

This commit is contained in:
Miguel Jacq 2019-09-09 16:35:05 +10:00
parent 8e238ab2d6
commit 90ebc3aab4
No known key found for this signature in database
GPG key ID: EEA4341C6D97A0B6
9 changed files with 92 additions and 15 deletions

View file

@ -285,6 +285,10 @@ class GuiBaseTest(object):
else:
self.assertEqual(self.gui.share_mode.server_status_label.text(), strings._('closing_automatically'))
def clear_all_history_items(self, mode, count):
if count == 0:
QtTest.QTest.mouseClick(mode.history.clear_button, QtCore.Qt.LeftButton)
self.assertEquals(len(mode.history.item_list.items.keys()), count)
# Auto-stop timer tests
def set_timeout(self, mode, timeout):