summaryrefslogtreecommitdiff
path: root/monkey-test
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2019-07-01 22:12:19 +0100
committerVincent Sanders <vince@kyllikki.org>2019-07-01 22:12:19 +0100
commit228eacf83d469994e4c4250a27d55f9a213234ed (patch)
tree4f9bd3c8299635fd13bbbf0e37190acc148440d8 /monkey-test
parent0ef3f41fb2b198df5be34a7c3b462b56f655a875 (diff)
downloadnetsurf-test-228eacf83d469994e4c4250a27d55f9a213234ed.tar.gz
netsurf-test-228eacf83d469994e4c4250a27d55f9a213234ed.tar.bz2
add initial ecmascript tests
Diffstat (limited to 'monkey-test')
-rw-r--r--monkey-test/ecmascript.yaml38
-rw-r--r--monkey-test/index.yaml3
2 files changed, 41 insertions, 0 deletions
diff --git a/monkey-test/ecmascript.yaml b/monkey-test/ecmascript.yaml
new file mode 100644
index 0000000..a08c9ce
--- /dev/null
+++ b/monkey-test/ecmascript.yaml
@@ -0,0 +1,38 @@
+title: Test ecmascript behaviour
+group: ecmascript
+steps:
+- action: launch
+ language: en
+- action: window-new
+ tag: win1
+
+# ensure isfinite works and is in both number and global context
+- action: navigate
+ window: win1
+ url: http://test.netsurf-browser.org/html/ecmascript-isfinite.html
+- action: block
+ conditions:
+ - window: win1
+ status: complete
+- action: plot-check
+ window: win1
+ checks:
+ - text-contains: "YESNOYESNO"
+
+# ensure isinteger works and is only in number context and not global
+- action: navigate
+ window: win1
+ url: http://test.netsurf-browser.org/html/ecmascript-isinteger.html
+- action: block
+ conditions:
+ - window: win1
+ status: complete
+- action: plot-check
+ window: win1
+ checks:
+ - text-contains: "YESNOReferenceError"
+
+- action: window-close
+ window: win1
+- action: quit
+
diff --git a/monkey-test/index.yaml b/monkey-test/index.yaml
index df10dbc..f23d69c 100644
--- a/monkey-test/index.yaml
+++ b/monkey-test/index.yaml
@@ -13,5 +13,8 @@
- group: https
description: Test HTTPS handling
+- group: ecmascript
+ description: ECMAScript tests
+
- group: popular-sites
description: Navigate popular web sites \ No newline at end of file