From 9ef04bd727252aee9dc6e074303f5a2aefb893e3 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 30 Nov 2019 18:33:29 +0000 Subject: change how divisions are implemented This allows tests to be limited to appear only in a single division reducing how many test files must be parsed for all divisions. --- monkey-test/ns-infrastructure/ecmascript.yaml | 40 +++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 monkey-test/ns-infrastructure/ecmascript.yaml (limited to 'monkey-test/ns-infrastructure/ecmascript.yaml') diff --git a/monkey-test/ns-infrastructure/ecmascript.yaml b/monkey-test/ns-infrastructure/ecmascript.yaml new file mode 100644 index 0000000..82ec892 --- /dev/null +++ b/monkey-test/ns-infrastructure/ecmascript.yaml @@ -0,0 +1,40 @@ +title: Test ecmascript behaviour +group: ecmascript +steps: +- action: launch + language: en + options: + - enable_javascript=1 +- 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 + -- cgit v1.2.3