From 1736bdcfee86a776ab3a9a6b74b2f9646688bb9c Mon Sep 17 00:00:00 2001 From: Daniel Silverstone Date: Mon, 6 May 2019 19:20:15 +0100 Subject: Add js-exec to monkey_driver, add a test, etc. Signed-off-by: Daniel Silverstone --- test/monkey-tests/inserted-script.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'test/monkey-tests/inserted-script.yaml') diff --git a/test/monkey-tests/inserted-script.yaml b/test/monkey-tests/inserted-script.yaml index b2f8fbf64..ac7bb0f7f 100644 --- a/test/monkey-tests/inserted-script.yaml +++ b/test/monkey-tests/inserted-script.yaml @@ -10,7 +10,14 @@ steps: window: win1 - action: navigate window: win1 - url: file:///home/dsilvers/dev-netsurf/workspace/netsurf/test/js/inserted-script.html + url: about:blank +- action: block + conditions: + - window: win1 + status: complete +- action: js-exec + window: win1 + cmd: location.assign("file:///home/dsilvers/dev-netsurf/workspace/netsurf/test/js/inserted-script.html") - action: block conditions: - window: win1 -- cgit v1.2.3