Gitweb links:
...log
http://git.netsurf-browser.org/netsurf-test.git/shortlog/e3c906a74dc846966b107dc35512b9ff06ba29c0
...commit
http://git.netsurf-browser.org/netsurf-test.git/commit/e3c906a74dc846966b107dc35512b9ff06ba29c0
...tree
http://git.netsurf-browser.org/netsurf-test.git/tree/e3c906a74dc846966b107dc35512b9ff06ba29c0
The branch, master has been updated
via e3c906a74dc846966b107dc35512b9ff06ba29c0 (commit)
from 5d6ae00155ab3af3b05f9c6a6c687861a5dc4293 (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=e3c906a74dc846966b107dc35512b9ff06ba29c0
commit e3c906a74dc846966b107dc35512b9ff06ba29c0
Author: Daniel Silverstone <[email protected]>
Commit: Daniel Silverstone <[email protected]>
Monkey: Add innerHTML test
Signed-off-by: Daniel Silverstone <[email protected]>
diff --git a/html/inner.html b/html/inner.html
new file mode 100644
index 0000000..7d12319
--- /dev/null
+++ b/html/inner.html
@@ -0,0 +1,14 @@
+<html><head><title>Inner</title>
+
+ <style>
+ h1 { visibility: hidden; }
+ div#magic > h1 { visibility: visible; }
+ </style>
+ </head>
+ <body>
+ <div id="magic"></div>
+ </body>
+ <script>
+ document.getElementById("magic").innerHTML = "<h1>innerHTML worked</h1>";
+ </script>
+</html>
diff --git a/monkey-test/ns-infrastructure/ecmascript.yaml
b/monkey-test/ns-infrastructure/ecmascript.yaml
index 82ec892..feb023e 100644
--- a/monkey-test/ns-infrastructure/ecmascript.yaml
+++ b/monkey-test/ns-infrastructure/ecmascript.yaml
@@ -34,6 +34,19 @@ steps:
checks:
- text-contains: "YESNOReferenceError"
+# ensure innerHTML works
+- action: navigate
+ window: win1
+ url: http://test.netsurf-browser.org/html/inner.html
+- action: block
+ conditions:
+ - window: win1
+ status: complete
+- action: plot-check
+ window: win1
+ checks:
+ - text-contains: "innerHTML worked"
+
- action: window-close
window: win1
- action: quit
-----------------------------------------------------------------------
Summary of changes:
html/inner.html | 14 ++++++++++++++
monkey-test/ns-infrastructure/ecmascript.yaml | 13 +++++++++++++
2 files changed, 27 insertions(+)
create mode 100644 html/inner.html
diff --git a/html/inner.html b/html/inner.html
new file mode 100644
index 0000000..7d12319
--- /dev/null
+++ b/html/inner.html
@@ -0,0 +1,14 @@
+<html><head><title>Inner</title>
+
+ <style>
+ h1 { visibility: hidden; }
+ div#magic > h1 { visibility: visible; }
+ </style>
+ </head>
+ <body>
+ <div id="magic"></div>
+ </body>
+ <script>
+ document.getElementById("magic").innerHTML = "<h1>innerHTML worked</h1>";
+ </script>
+</html>
diff --git a/monkey-test/ns-infrastructure/ecmascript.yaml
b/monkey-test/ns-infrastructure/ecmascript.yaml
index 82ec892..feb023e 100644
--- a/monkey-test/ns-infrastructure/ecmascript.yaml
+++ b/monkey-test/ns-infrastructure/ecmascript.yaml
@@ -34,6 +34,19 @@ steps:
checks:
- text-contains: "YESNOReferenceError"
+# ensure innerHTML works
+- action: navigate
+ window: win1
+ url: http://test.netsurf-browser.org/html/inner.html
+- action: block
+ conditions:
+ - window: win1
+ status: complete
+- action: plot-check
+ window: win1
+ checks:
+ - text-contains: "innerHTML worked"
+
- action: window-close
window: win1
- action: quit
--
NetSurf test cases
_______________________________________________
netsurf-commits mailing list
[email protected]
http://listmaster.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org