summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2019-02-16 15:56:22 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2019-02-16 15:56:22 +0000
commit5007f8a278222e3b9dddc58f6890e2f6f11f6f69 (patch)
tree0b166203e19c57d2b72f0566c947fbb61e9476ad
parentf0dde8c1223fa9cdffcfb44c6a3654d0940e00e0 (diff)
downloadnetsurf-test-5007f8a278222e3b9dddc58f6890e2f6f11f6f69.tar.gz
netsurf-test-5007f8a278222e3b9dddc58f6890e2f6f11f6f69.tar.bz2
tests: Add standalone image tests.
-rw-r--r--monkey-test/load-image-bmp.yaml21
-rw-r--r--monkey-test/load-image-gif.yaml21
-rw-r--r--monkey-test/load-image-ico.yaml21
-rw-r--r--monkey-test/load-image-jpeg.yaml21
-rw-r--r--monkey-test/load-image-png.yaml (renamed from monkey-test/load-png.yaml)7
5 files changed, 84 insertions, 7 deletions
diff --git a/monkey-test/load-image-bmp.yaml b/monkey-test/load-image-bmp.yaml
new file mode 100644
index 0000000..f204049
--- /dev/null
+++ b/monkey-test/load-image-bmp.yaml
@@ -0,0 +1,21 @@
+title: load a bmp file
+group: basic
+steps:
+- action: launch
+ language: en
+- action: window-new
+ tag: win1
+- action: navigate
+ window: win1
+ url: https://test.netsurf-browser.org/cgi-bin/image.cgi?format=bmp&width=40&height=30
+- action: block
+ conditions:
+ - window: win1
+ status: complete
+- action: plot-check
+ window: win1
+ checks:
+ - bitmap-count: 1
+- action: window-close
+ window: win1
+- action: quit \ No newline at end of file
diff --git a/monkey-test/load-image-gif.yaml b/monkey-test/load-image-gif.yaml
new file mode 100644
index 0000000..d84e8ad
--- /dev/null
+++ b/monkey-test/load-image-gif.yaml
@@ -0,0 +1,21 @@
+title: load a gif file
+group: basic
+steps:
+- action: launch
+ language: en
+- action: window-new
+ tag: win1
+- action: navigate
+ window: win1
+ url: https://test.netsurf-browser.org/cgi-bin/image.cgi?format=gif&width=40&height=30
+- action: block
+ conditions:
+ - window: win1
+ status: complete
+- action: plot-check
+ window: win1
+ checks:
+ - bitmap-count: 1
+- action: window-close
+ window: win1
+- action: quit \ No newline at end of file
diff --git a/monkey-test/load-image-ico.yaml b/monkey-test/load-image-ico.yaml
new file mode 100644
index 0000000..460b402
--- /dev/null
+++ b/monkey-test/load-image-ico.yaml
@@ -0,0 +1,21 @@
+title: load a bmp file
+group: basic
+steps:
+- action: launch
+ language: en
+- action: window-new
+ tag: win1
+- action: navigate
+ window: win1
+ url: https://test.netsurf-browser.org/cgi-bin/image.cgi?format=ico&width=40&height=30
+- action: block
+ conditions:
+ - window: win1
+ status: complete
+- action: plot-check
+ window: win1
+ checks:
+ - bitmap-count: 1
+- action: window-close
+ window: win1
+- action: quit \ No newline at end of file
diff --git a/monkey-test/load-image-jpeg.yaml b/monkey-test/load-image-jpeg.yaml
new file mode 100644
index 0000000..8e405d3
--- /dev/null
+++ b/monkey-test/load-image-jpeg.yaml
@@ -0,0 +1,21 @@
+title: load a jpeg file
+group: basic
+steps:
+- action: launch
+ language: en
+- action: window-new
+ tag: win1
+- action: navigate
+ window: win1
+ url: https://test.netsurf-browser.org/cgi-bin/image.cgi?format=jpeg&width=40&height=30
+- action: block
+ conditions:
+ - window: win1
+ status: complete
+- action: plot-check
+ window: win1
+ checks:
+ - bitmap-count: 1
+- action: window-close
+ window: win1
+- action: quit \ No newline at end of file
diff --git a/monkey-test/load-png.yaml b/monkey-test/load-image-png.yaml
index e850e55..5089c77 100644
--- a/monkey-test/load-png.yaml
+++ b/monkey-test/load-image-png.yaml
@@ -16,13 +16,6 @@ steps:
window: win1
checks:
- bitmap-count: 1
-- action: navigate
- window: win1
- url: resource:netsurf.png
-- action: block
- conditions:
- - window: win1
- status: complete
- action: window-close
window: win1
- action: quit \ No newline at end of file