summaryrefslogtreecommitdiff
path: root/monkey-test/ecmascript.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'monkey-test/ecmascript.yaml')
-rw-r--r--monkey-test/ecmascript.yaml38
1 files changed, 38 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
+