From c537b901f07bd00ee938a5bc8b355cb95b3dd6e3 Mon Sep 17 00:00:00 2001 From: Kevin Velghe Date: Fri, 21 Oct 2016 00:31:02 +0200 Subject: [PATCH] Add test for jseval when javascript is disabled --- tests/end2end/features/javascript.feature | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/end2end/features/javascript.feature b/tests/end2end/features/javascript.feature index a86d88e20..dda097f00 100644 --- a/tests/end2end/features/javascript.feature +++ b/tests/end2end/features/javascript.feature @@ -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