Gitweb links:
...log
http://git.netsurf-browser.org/netsurf-test.git/shortlog/e090974000e3d6d93ef8154becfb53bd43595843
...commit
http://git.netsurf-browser.org/netsurf-test.git/commit/e090974000e3d6d93ef8154becfb53bd43595843
...tree
http://git.netsurf-browser.org/netsurf-test.git/tree/e090974000e3d6d93ef8154becfb53bd43595843
The branch, master has been updated
via e090974000e3d6d93ef8154becfb53bd43595843 (commit)
from 18fb6f01818b99c430b8e0fad9d04ca1bbe7141b (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=e090974000e3d6d93ef8154becfb53bd43595843
commit e090974000e3d6d93ef8154becfb53bd43595843
Author: Daniel Silverstone <[email protected]>
Commit: Daniel Silverstone <[email protected]>
basic-navigation: Test clicking on a link
Signed-off-by: Daniel Silverstone <[email protected]>
diff --git a/monkey-test/basic-navigation.yaml
b/monkey-test/basic-navigation.yaml
new file mode 100644
index 0000000..7d24294
--- /dev/null
+++ b/monkey-test/basic-navigation.yaml
@@ -0,0 +1,46 @@
+title: Test basic click navigation
+group: initial
+steps:
+- action: launch
+ language: en
+ options:
+ - enable_javascript=1
+- action: window-new
+ tag: win1
+
+# Ensure we can load the page properly in the first place
+- action: navigate
+ window: win1
+ url: about:about
+- action: block
+ conditions:
+ - window: win1
+ status: complete
+- action: plot-check
+ window: win1
+ checks:
+ - text-contains: "about:Choices"
+
+# Now let's try and navigate to the choices page
+- action: click
+ window: win1
+ target:
+ text: "about:Choices"
+# Wait for it to load
+- action: wait-loading
+ window: win1
+- action: block
+ conditions:
+ - window: win1
+ status: complete
+# And check we got the choices
+- action: plot-check
+ window: win1
+ checks:
+ - text-contains: "Automatically generated"
+
+
+- action: window-close
+ window: win1
+- action: quit
+
-----------------------------------------------------------------------
Summary of changes:
.../{ecmascript.yaml => basic-navigation.yaml} | 24 ++++++++++++--------
1 file changed, 15 insertions(+), 9 deletions(-)
copy monkey-test/{ecmascript.yaml => basic-navigation.yaml} (51%)
diff --git a/monkey-test/ecmascript.yaml b/monkey-test/basic-navigation.yaml
similarity index 51%
copy from monkey-test/ecmascript.yaml
copy to monkey-test/basic-navigation.yaml
index 82ec892..7d24294 100644
--- a/monkey-test/ecmascript.yaml
+++ b/monkey-test/basic-navigation.yaml
@@ -1,5 +1,5 @@
-title: Test ecmascript behaviour
-group: ecmascript
+title: Test basic click navigation
+group: initial
steps:
- action: launch
language: en
@@ -8,10 +8,10 @@ steps:
- action: window-new
tag: win1
-# ensure isfinite works and is in both number and global context
+# Ensure we can load the page properly in the first place
- action: navigate
window: win1
- url: http://test.netsurf-browser.org/html/ecmascript-isfinite.html
+ url: about:about
- action: block
conditions:
- window: win1
@@ -19,20 +19,26 @@ steps:
- action: plot-check
window: win1
checks:
- - text-contains: "YESNOYESNO"
+ - text-contains: "about:Choices"
-# ensure isinteger works and is only in number context and not global
-- action: navigate
+# Now let's try and navigate to the choices page
+- action: click
+ window: win1
+ target:
+ text: "about:Choices"
+# Wait for it to load
+- action: wait-loading
window: win1
- url: http://test.netsurf-browser.org/html/ecmascript-isinteger.html
- action: block
conditions:
- window: win1
status: complete
+# And check we got the choices
- action: plot-check
window: win1
checks:
- - text-contains: "YESNOReferenceError"
+ - text-contains: "Automatically generated"
+
- action: window-close
window: win1
--
NetSurf test cases
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org