Gitweb links:

...log 
http://git.netsurf-browser.org/netsurf-test.git/shortlog/eda64c6733a3cf8c5eec419d6903a3f08cfeb828
...commit 
http://git.netsurf-browser.org/netsurf-test.git/commit/eda64c6733a3cf8c5eec419d6903a3f08cfeb828
...tree 
http://git.netsurf-browser.org/netsurf-test.git/tree/eda64c6733a3cf8c5eec419d6903a3f08cfeb828

The branch, master has been updated
       via  eda64c6733a3cf8c5eec419d6903a3f08cfeb828 (commit)
      from  74ab5697625ffedd66ee8de756aaf8620c480d43 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commitdiff 
http://git.netsurf-browser.org/netsurf-test.git/commit/?id=eda64c6733a3cf8c5eec419d6903a3f08cfeb828
commit eda64c6733a3cf8c5eec419d6903a3f08cfeb828
Author: Michael Drake <[email protected]>
Commit: Michael Drake <[email protected]>

    monkey tests: Initial set of tests.

diff --git a/html/trivial-document.html b/html/trivial-document.html
new file mode 100644
index 0000000..1d1ccb6
--- /dev/null
+++ b/html/trivial-document.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+ <head>
+  <title>Trivial document</title>
+ </head>
+ <body>
+  <h1>Trivial document</h1>
+  <p>Hello!</p>
+ </body>
+</html>
diff --git a/monkey-test/index.yaml b/monkey-test/index.yaml
new file mode 100644
index 0000000..eaf3996
--- /dev/null
+++ b/monkey-test/index.yaml
@@ -0,0 +1,8 @@
+- group: initial
+  description: Basic checks that the browser can start and stop
+
+- group: no-networking
+  description: Tests that require no networking
+
+- group: basic
+  description: Basic tests that fetch from the test server
diff --git a/monkey-test/load-trivial-document.yaml 
b/monkey-test/load-trivial-document.yaml
new file mode 100644
index 0000000..42ef322
--- /dev/null
+++ b/monkey-test/load-trivial-document.yaml
@@ -0,0 +1,29 @@
+title: load trivial document
+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.html
+- action: block
+  conditions:
+  - window: win1
+    status: complete
+- action: plot-check
+  window: win1
+  checks:
+  - text-contains: Trivial document
+  - text-contains: Hello!
+- 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
diff --git a/monkey-test/resource-scheme.yaml b/monkey-test/resource-scheme.yaml
index 791a79c..ca5ed2a 100644
--- a/monkey-test/resource-scheme.yaml
+++ b/monkey-test/resource-scheme.yaml
@@ -1,5 +1,5 @@
 title: resource scheme
-group: basic
+group: no-networking
 steps:
 - action: launch
   language: en
diff --git a/monkey-test/start-stop-no-js.yaml 
b/monkey-test/start-stop-no-js.yaml
new file mode 100644
index 0000000..ef26a82
--- /dev/null
+++ b/monkey-test/start-stop-no-js.yaml
@@ -0,0 +1,8 @@
+title: start and stop browser without JS
+group: initial
+steps:
+- action: launch
+  args:
+  - enable_javascript=0
+- action: quit
+
diff --git a/monkey-test/start-stop.yaml b/monkey-test/start-stop.yaml
new file mode 100644
index 0000000..6b8f4f3
--- /dev/null
+++ b/monkey-test/start-stop.yaml
@@ -0,0 +1,6 @@
+title: start and stop browser
+group: initial
+steps:
+- action: launch
+- action: quit
+


-----------------------------------------------------------------------

Summary of changes:
 html/trivial-document.html                              |   10 ++++++++++
 monkey-test/index.yaml                                  |    8 ++++++++
 ...{resource-scheme.yaml => load-trivial-document.yaml} |   15 +++++----------
 monkey-test/resource-scheme.yaml                        |    2 +-
 monkey-test/start-stop-no-js.yaml                       |    8 ++++++++
 monkey-test/start-stop.yaml                             |    6 ++++++
 6 files changed, 38 insertions(+), 11 deletions(-)
 create mode 100644 html/trivial-document.html
 create mode 100644 monkey-test/index.yaml
 copy monkey-test/{resource-scheme.yaml => load-trivial-document.yaml} (67%)
 create mode 100644 monkey-test/start-stop-no-js.yaml
 create mode 100644 monkey-test/start-stop.yaml

diff --git a/html/trivial-document.html b/html/trivial-document.html
new file mode 100644
index 0000000..1d1ccb6
--- /dev/null
+++ b/html/trivial-document.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+ <head>
+  <title>Trivial document</title>
+ </head>
+ <body>
+  <h1>Trivial document</h1>
+  <p>Hello!</p>
+ </body>
+</html>
diff --git a/monkey-test/index.yaml b/monkey-test/index.yaml
new file mode 100644
index 0000000..eaf3996
--- /dev/null
+++ b/monkey-test/index.yaml
@@ -0,0 +1,8 @@
+- group: initial
+  description: Basic checks that the browser can start and stop
+
+- group: no-networking
+  description: Tests that require no networking
+
+- group: basic
+  description: Basic tests that fetch from the test server
diff --git a/monkey-test/resource-scheme.yaml 
b/monkey-test/load-trivial-document.yaml
similarity index 67%
copy from monkey-test/resource-scheme.yaml
copy to monkey-test/load-trivial-document.yaml
index 791a79c..42ef322 100644
--- a/monkey-test/resource-scheme.yaml
+++ b/monkey-test/load-trivial-document.yaml
@@ -1,4 +1,4 @@
-title: resource scheme
+title: load trivial document
 group: basic
 steps:
 - action: launch
@@ -7,7 +7,7 @@ steps:
   tag: win1
 - action: navigate
   window: win1
-  url: resource:does-not-exist
+  url: http://test.netsurf-browser.org/html/trivial-document.html
 - action: block
   conditions:
   - window: win1
@@ -15,8 +15,8 @@ steps:
 - action: plot-check
   window: win1
   checks:
-  - text-contains: Not found
-  - text-contains: Error 404
+  - text-contains: Trivial document
+  - text-contains: Hello!
 - action: navigate
   window: win1
   url: resource:netsurf.png
@@ -24,11 +24,6 @@ steps:
   conditions:
   - window: win1
     status: complete
-- action: plot-check
-  window: win1
-  checks:
-  - bitmap-count: 1
 - action: window-close
   window: win1
-- action: quit
-
+- action: quit
\ No newline at end of file
diff --git a/monkey-test/resource-scheme.yaml b/monkey-test/resource-scheme.yaml
index 791a79c..ca5ed2a 100644
--- a/monkey-test/resource-scheme.yaml
+++ b/monkey-test/resource-scheme.yaml
@@ -1,5 +1,5 @@
 title: resource scheme
-group: basic
+group: no-networking
 steps:
 - action: launch
   language: en
diff --git a/monkey-test/start-stop-no-js.yaml 
b/monkey-test/start-stop-no-js.yaml
new file mode 100644
index 0000000..ef26a82
--- /dev/null
+++ b/monkey-test/start-stop-no-js.yaml
@@ -0,0 +1,8 @@
+title: start and stop browser without JS
+group: initial
+steps:
+- action: launch
+  args:
+  - enable_javascript=0
+- action: quit
+
diff --git a/monkey-test/start-stop.yaml b/monkey-test/start-stop.yaml
new file mode 100644
index 0000000..6b8f4f3
--- /dev/null
+++ b/monkey-test/start-stop.yaml
@@ -0,0 +1,6 @@
+title: start and stop browser
+group: initial
+steps:
+- action: launch
+- action: quit
+


-- 
NetSurf test cases

_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org

Reply via email to