summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2019-12-01 18:25:06 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2019-12-01 18:25:06 +0000
commite995422137ad124718c97326e205ce531d8b0536 (patch)
tree71aea8519fd1381c1cd0fc409fb86add1542a64f
parent0cdd48b77844bf9339d1c2a2c2658cdb146f2c88 (diff)
downloadnetsurf-test-e995422137ad124718c97326e205ce531d8b0536.tar.gz
netsurf-test-e995422137ad124718c97326e205ce531d8b0536.tar.bz2
Add page info state tests
Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
-rw-r--r--monkey-test/ns-infrastructure/state-test.yaml69
1 files changed, 69 insertions, 0 deletions
diff --git a/monkey-test/ns-infrastructure/state-test.yaml b/monkey-test/ns-infrastructure/state-test.yaml
new file mode 100644
index 0000000..6f25a78
--- /dev/null
+++ b/monkey-test/ns-infrastructure/state-test.yaml
@@ -0,0 +1,69 @@
+title: Page state info test
+group: basic
+steps:
+- action: launch
+ language: en
+- action: window-new
+ tag: win1
+- action: navigate
+ window: win1
+ url: about:config
+- action: block
+ conditions:
+ - window: win1
+ status: complete
+- action: page-info-state
+ window: win1
+ match: INTERNAL
+- action: navigate
+ window: win1
+ url: file:///
+- action: block
+ conditions:
+ - window: win1
+ status: complete
+- action: page-info-state
+ window: win1
+ match: LOCAL
+- action: navigate
+ window: win1
+ url: http://test.netsurf-browser.org/html/trivial-document.html
+- action: block
+ conditions:
+ - window: win1
+ status: complete
+- action: page-info-state
+ window: win1
+ match: INSECURE
+- action: navigate
+ window: win1
+ url: https://test.netsurf-browser.org/html/trivial-document.html
+- action: block
+ conditions:
+ - window: win1
+ status: complete
+- action: page-info-state
+ window: win1
+ match: SECURE
+- action: navigate
+ window: win1
+ url: https://test.netsurf-browser.org/html/trivial-document-with-png.html
+- action: block
+ conditions:
+ - window: win1
+ status: complete
+- action: page-info-state
+ window: win1
+ match: SECURE
+- action: navigate
+ window: win1
+ url: https://test.netsurf-browser.org/html/trivial-document-with-http-png.html
+- action: block
+ conditions:
+ - window: win1
+ status: complete
+- action: page-info-state
+ window: win1
+ match: SECURE_ISSUES
+- action: quit
+