summaryrefslogtreecommitdiff
path: root/monkey-test/ecmascript.yaml
blob: a08c9ced1b15f7977df48567e36449333bdc7ad9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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