~uriboni/webbrowser-app/tab-context-menu

« back to all changes in this revision

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

  • Committer: CI Train Bot
  • Author(s): Olivier Tilloy, Ugo Riboni
  • Date: 2015-08-11 11:18:30 UTC
  • mfrom: (985.6.52 uriboni-find-in-page)
  • Revision ID: ci-train-bot@canonical.com-20150811111830-o328zwwobjvumevy
Implement the "Find in Page" feature.
This bumps the runtime dependency on liboxideqt-qmlplugin to 1.8. Fixes: #1312260
Approved by: Riccardo Padovani

Show diffs side-by-side

added added

removed removed

Lines of Context:
294
294
        settings.wait_until_destroyed()
295
295
        webview = self.main_window.get_current_webview()
296
296
        self.assertThat(webview.activeFocus, Eventually(Equals(True)))
 
297
 
 
298
    def test_find_in_page_ctrl_f(self):
 
299
        address_bar = self.main_window.chrome.address_bar
 
300
        self.assertThat(address_bar.findInPageMode, Equals(False))
 
301
        self.main_window.press_key('Ctrl+F')
 
302
        self.assertThat(address_bar.findInPageMode, Eventually(Equals(True)))
 
303
        self.main_window.press_key('Escape')
 
304
        self.assertThat(address_bar.findInPageMode, Eventually(Equals(False)))