netsurf: branch master updated. 82cae102843de3f9d638648556592cf9d09c9638

NetSurf Browser Project (Commit Mailer) no-reply at netsurf-browser.org
Fri Nov 16 22:07:21 GMT 2012


Gitweb links:

...log http://git.netsurf-browser.org/netsurf.git/shortlog/82cae102843de3f9d638648556592cf9d09c9638
...commit http://git.netsurf-browser.org/netsurf.git/commit/82cae102843de3f9d638648556592cf9d09c9638
...tree http://git.netsurf-browser.org/netsurf.git/tree/82cae102843de3f9d638648556592cf9d09c9638

The branch, master has been updated
       via  82cae102843de3f9d638648556592cf9d09c9638 (commit)
      from  e36b8f657997ffca3d1cc1fe1a7130854d247262 (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.git/commitdiff/82cae102843de3f9d638648556592cf9d09c9638
commit 82cae102843de3f9d638648556592cf9d09c9638
Author: Vincent Sanders <vince at kyllikki.org>
Commit: Vincent Sanders <vince at kyllikki.org>

    more enumeration tests and update test index

diff --git a/test/js/dom-body-enumerate.html b/test/js/dom-body-enumerate.html
new file mode 100644
index 0000000..3ff1054
--- /dev/null
+++ b/test/js/dom-body-enumerate.html
@@ -0,0 +1,27 @@
+<html>
+<head>
+<title>Body element interface enumeration</title>
+<link rel="stylesheet" type="text/css" href="tst.css">
+</head>
+<body>
+<h1>Body element interface enumeration</h1>
+
+<script>
+function output(x,y) {
+    document.body.appendChild(document.createTextNode(x));
+    document.body.appendChild(document.createTextNode("("));
+    if (y != undefined) {
+document.body.appendChild(document.createTextNode(y.length));
+}
+    document.body.appendChild(document.createTextNode(") = "));
+    document.body.appendChild(document.createTextNode(y));
+    document.body.appendChild(document.createElement('br'));
+}
+
+
+for(var key in document.body){
+output(key, document.body[key]);
+}
+</script>
+</body>
+</html>
diff --git a/test/js/dom-node-enumerate.html b/test/js/dom-node-enumerate.html
index 261d680..573e27b 100644
--- a/test/js/dom-node-enumerate.html
+++ b/test/js/dom-node-enumerate.html
@@ -9,19 +9,17 @@
 <script>
 function output(x,y) {
     document.body.appendChild(document.createTextNode(x));
-    document.body.appendChild(document.createTextNode(" = "));
+    document.body.appendChild(document.createTextNode("("));
+    if (y != undefined) {
+document.body.appendChild(document.createTextNode(y.length));
+}
+    document.body.appendChild(document.createTextNode(") = "));
     document.body.appendChild(document.createTextNode(y));
     document.body.appendChild(document.createElement('br'));
 }
 for(var key in Node){
 output(key, Node[key]);
 }
-
-    document.body.appendChild(document.createElement('hr'));
-
-for(var key in document.body){
-output(key, document.body[key]);
-}
 </script>
 </body>
 </html>
diff --git a/test/js/index.html b/test/js/index.html
index e94e8e8..f02c4df 100644
--- a/test/js/index.html
+++ b/test/js/index.html
@@ -29,6 +29,11 @@
 <li><a href="dom-getElementsByTagName.html">getElementsByTagName</a></li>
 
 </ul>
+<h3>Enumeration tests</h3>
+<ul>
+<li><a href="dom-node-enumerate.html">Node element interface</a></li>
+<li><a href="dom-body-enumerate.html">Body element interface</a></li>
+</ul>
 <h3>Document element specific</h3>
 <ul>
 <li><a href="dom-doc-cookie.html">Cookie dispaly (only from server)</a></li>


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

Summary of changes:
 ...node-enumerate.html => dom-body-enumerate.html} |   14 +++++++-------
 test/js/dom-node-enumerate.html                    |   12 +++++-------
 test/js/index.html                                 |    5 +++++
 3 files changed, 17 insertions(+), 14 deletions(-)
 copy test/js/{dom-node-enumerate.html => dom-body-enumerate.html} (56%)

diff --git a/test/js/dom-node-enumerate.html b/test/js/dom-body-enumerate.html
similarity index 56%
copy from test/js/dom-node-enumerate.html
copy to test/js/dom-body-enumerate.html
index 261d680..3ff1054 100644
--- a/test/js/dom-node-enumerate.html
+++ b/test/js/dom-body-enumerate.html
@@ -1,23 +1,23 @@
 <html>
 <head>
-<title>Node interface enumeration</title>
+<title>Body element interface enumeration</title>
 <link rel="stylesheet" type="text/css" href="tst.css">
 </head>
 <body>
-<h1>Node interface enumeration</h1>
+<h1>Body element interface enumeration</h1>
 
 <script>
 function output(x,y) {
     document.body.appendChild(document.createTextNode(x));
-    document.body.appendChild(document.createTextNode(" = "));
+    document.body.appendChild(document.createTextNode("("));
+    if (y != undefined) {
+document.body.appendChild(document.createTextNode(y.length));
+}
+    document.body.appendChild(document.createTextNode(") = "));
     document.body.appendChild(document.createTextNode(y));
     document.body.appendChild(document.createElement('br'));
 }
-for(var key in Node){
-output(key, Node[key]);
-}
 
-    document.body.appendChild(document.createElement('hr'));
 
 for(var key in document.body){
 output(key, document.body[key]);
diff --git a/test/js/dom-node-enumerate.html b/test/js/dom-node-enumerate.html
index 261d680..573e27b 100644
--- a/test/js/dom-node-enumerate.html
+++ b/test/js/dom-node-enumerate.html
@@ -9,19 +9,17 @@
 <script>
 function output(x,y) {
     document.body.appendChild(document.createTextNode(x));
-    document.body.appendChild(document.createTextNode(" = "));
+    document.body.appendChild(document.createTextNode("("));
+    if (y != undefined) {
+document.body.appendChild(document.createTextNode(y.length));
+}
+    document.body.appendChild(document.createTextNode(") = "));
     document.body.appendChild(document.createTextNode(y));
     document.body.appendChild(document.createElement('br'));
 }
 for(var key in Node){
 output(key, Node[key]);
 }
-
-    document.body.appendChild(document.createElement('hr'));
-
-for(var key in document.body){
-output(key, document.body[key]);
-}
 </script>
 </body>
 </html>
diff --git a/test/js/index.html b/test/js/index.html
index e94e8e8..f02c4df 100644
--- a/test/js/index.html
+++ b/test/js/index.html
@@ -29,6 +29,11 @@
 <li><a href="dom-getElementsByTagName.html">getElementsByTagName</a></li>
 
 </ul>
+<h3>Enumeration tests</h3>
+<ul>
+<li><a href="dom-node-enumerate.html">Node element interface</a></li>
+<li><a href="dom-body-enumerate.html">Body element interface</a></li>
+</ul>
 <h3>Document element specific</h3>
 <ul>
 <li><a href="dom-doc-cookie.html">Cookie dispaly (only from server)</a></li>


-- 
NetSurf Browser



More information about the netsurf-commits mailing list