mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-22 06:21:45 +03:00
Monkey tests: Add more example test plans.
This commit is contained in:
parent
90e4976800
commit
7cc1f1bfc0
30
test/monkey-tests/resource-scheme.yaml
Normal file
30
test/monkey-tests/resource-scheme.yaml
Normal file
@ -0,0 +1,30 @@
|
||||
title: resource scheme
|
||||
group: basic
|
||||
steps:
|
||||
- action: launch
|
||||
language: en
|
||||
- action: window-new
|
||||
tag: win1
|
||||
- action: navigate
|
||||
window: win1
|
||||
url: resource:does-not-exist
|
||||
- action: block
|
||||
conditions:
|
||||
- window: win1
|
||||
status: complete
|
||||
- action: plot-check
|
||||
- text-contains: Not found
|
||||
- text-contains: Error 404
|
||||
- action: navigate
|
||||
window: win1
|
||||
url: resource:netsurf.png
|
||||
- action: block
|
||||
conditions:
|
||||
- window: win1
|
||||
status: complete
|
||||
- action: plot-check
|
||||
- bitmap-count: 1
|
||||
- action: window-close
|
||||
- window: win1
|
||||
- action: quit
|
||||
|
35
test/monkey-tests/simultanious-fetches.yaml
Normal file
35
test/monkey-tests/simultanious-fetches.yaml
Normal file
@ -0,0 +1,35 @@
|
||||
title: simultanious page fetches
|
||||
group: real-world
|
||||
steps:
|
||||
- action: launch
|
||||
language: en
|
||||
- action: window-new
|
||||
tag: win1
|
||||
- action: window-new
|
||||
tag: win2
|
||||
- action: window-new
|
||||
tag: win3
|
||||
- action: window-new
|
||||
tag: win4
|
||||
- action: navigate
|
||||
window: win1
|
||||
url: http://www.bbc.co.uk/news
|
||||
- action: navigate
|
||||
window: win2
|
||||
url: http://www.amazon.co.uk/
|
||||
- action: navigate
|
||||
window: win3
|
||||
url: http://www.theregister.co.uk/
|
||||
- action: navigate
|
||||
window: win4
|
||||
url: http://www.arstechnica.co.uk/
|
||||
- action: block
|
||||
conditions:
|
||||
- window: *all*
|
||||
status: complete
|
||||
- action: window-close
|
||||
window: win1
|
||||
- action: window-close
|
||||
window: win2
|
||||
- action: quit
|
||||
|
6
test/monkey-tests/start-stop.yaml
Normal file
6
test/monkey-tests/start-stop.yaml
Normal file
@ -0,0 +1,6 @@
|
||||
title: start and stop browser
|
||||
group: basic
|
||||
steps:
|
||||
- action: launch
|
||||
- action: quit
|
||||
|
8
test/monkey-tests/start-stop=no-js.yaml
Normal file
8
test/monkey-tests/start-stop=no-js.yaml
Normal file
@ -0,0 +1,8 @@
|
||||
title: start and stop browser without JS
|
||||
group: basic
|
||||
steps:
|
||||
- action: launch
|
||||
args:
|
||||
- enable_javascript=0
|
||||
- action: quit
|
||||
|
Loading…
Reference in New Issue
Block a user