2016-01-20 21:24:51 +01:00
|
|
|
Feature: Javascript stuff
|
|
|
|
|
|
|
|
Integration with javascript.
|
|
|
|
|
2016-07-13 10:25:21 +02:00
|
|
|
Scenario: Using console.log
|
|
|
|
When I set general -> log-javascript-console to debug
|
|
|
|
And I open data/javascript/consolelog.html
|
|
|
|
Then the javascript message "console.log works!" should be logged
|
|
|
|
|
2016-01-20 21:24:51 +01:00
|
|
|
# https://github.com/The-Compiler/qutebrowser/issues/906
|
|
|
|
|
|
|
|
Scenario: Closing a JS window twice (issue 906)
|
|
|
|
When I open about:blank
|
|
|
|
And I open data/javascript/issue906.html in a new tab
|
2016-08-18 16:13:38 +02:00
|
|
|
And I run :click-element id open-button
|
2016-01-24 18:43:07 +01:00
|
|
|
And I wait for "Changing title for idx 2 to 'about:blank'" in the log
|
2016-01-20 21:24:51 +01:00
|
|
|
And I run :tab-focus 2
|
2016-08-18 16:13:38 +02:00
|
|
|
And I run :click-element id close-button
|
2016-01-20 21:24:51 +01:00
|
|
|
Then "Requested to close * which does not exist!" should be logged
|