Add test for jseval when javascript is disabled

This commit is contained in:
Kevin Velghe 2016-10-21 00:31:02 +02:00
parent e83b99b0e1
commit c537b901f0

View File

@ -71,3 +71,8 @@ Feature: Javascript stuff
And I run :tab-only
And I run :jseval if (window.open('about:blank')) { console.log('window opened'); } else { console.log('error while opening window'); }
Then the javascript message "error while opening window" should be logged
Scenario: Executing jseval when javascript is disabled
When I set content -> allow-javascript to false
And I run :jseval console.log('jseval executed')
Then the javascript message "jseval executed" should be logged