summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2019-02-16 16:58:32 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2019-02-16 16:59:29 +0000
commitc0bc2968f9b41ee47b327385ced8fc73b3481b17 (patch)
treec8e8dbd05bf8c242bd8b23e763630572a1f558b4
parent3b634c5eaf5126d6727709779e09430046d25184 (diff)
downloadnetsurf-test-c0bc2968f9b41ee47b327385ced8fc73b3481b17.tar.gz
netsurf-test-c0bc2968f9b41ee47b327385ced8fc73b3481b17.tar.bz2
tests: Add test for html page with png image.
-rw-r--r--html/trivial-document-with-png.html10
-rw-r--r--monkey-test/load-trivial-document-with-png.yaml29
2 files changed, 39 insertions, 0 deletions
diff --git a/html/trivial-document-with-png.html b/html/trivial-document-with-png.html
new file mode 100644
index 0000000..c7287ec
--- /dev/null
+++ b/html/trivial-document-with-png.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <title>Trivial document with PNG</title>
+ </head>
+ <body>
+ <h1>Trivial document with PNG</h1>
+ <p><img src="https://test.netsurf-browser.org/cgi-bin/image.cgi?format=png&width=40&height=30"></p>
+ </body>
+</html>
diff --git a/monkey-test/load-trivial-document-with-png.yaml b/monkey-test/load-trivial-document-with-png.yaml
new file mode 100644
index 0000000..01f24a7
--- /dev/null
+++ b/monkey-test/load-trivial-document-with-png.yaml
@@ -0,0 +1,29 @@
+title: load trivial document with png
+group: basic
+steps:
+- action: launch
+ language: en
+- action: window-new
+ tag: win1
+- action: navigate
+ window: win1
+ url: http://test.netsurf-browser.org/html/trivial-document-with-png.html
+- action: block
+ conditions:
+ - window: win1
+ status: complete
+- action: plot-check
+ window: win1
+ checks:
+ - text-contains: Trivial document with PNG
+ - bitmap-count: 0
+- 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