tests: Make checks for focus window more forgiving.

It seems on OS X we get this instead of focusing the webview:
"Focus object changed: <qutebrowser.browser.inspector.WebInspector object at ...>"
This commit is contained in:
Florian Bruhin 2015-11-24 16:54:35 +01:00
parent 922fdc0526
commit d13ae4c666

View File

@ -114,7 +114,7 @@ Feature: Various utility commands.
And I run :inspector And I run :inspector
And I wait for "Focus object changed: <PyQt5.QtWebKitWidgets.QWebView object at *>" in the log And I wait for "Focus object changed: <PyQt5.QtWebKitWidgets.QWebView object at *>" in the log
And I run :inspector And I run :inspector
And I wait for "Focus object changed: <qutebrowser.browser.webview.WebView *>" in the log And I wait for "Focus object changed: *" in the log
Then no crash should happen Then no crash should happen
# :fake-key # :fake-key
@ -138,7 +138,7 @@ Feature: Various utility commands.
And I wait for "Focus object changed: <PyQt5.QtWebKitWidgets.QWebView object at *>" in the log And I wait for "Focus object changed: <PyQt5.QtWebKitWidgets.QWebView object at *>" in the log
And I run :fake-key x And I run :fake-key x
And I run :inspector And I run :inspector
And I wait for "Focus object changed: <qutebrowser.browser.webview.WebView *>" in the log And I wait for "Focus object changed: *" in the log
Then the error "No focused webview!" should be shown. Then the error "No focused webview!" should be shown.
Scenario: :fake-key sending special key to the website Scenario: :fake-key sending special key to the website