summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2017-02-05 11:27:56 (GMT)
committer Daniel Silverstone <dsilvers@digital-scurf.org>2017-02-05 12:39:50 (GMT)
commit57fec3504f29753128204bbf03cc92767f501fd4 (patch)
tree54ebc7ea6decd3f842c7d6797522f8534c4c1d72
parent8e9751d3b6cd555119ca195e6751c2675beb3b7d (diff)
downloadnetsurf-57fec3504f29753128204bbf03cc92767f501fd4.tar.gz
netsurf-57fec3504f29753128204bbf03cc92767f501fd4.tar.bz2
Add dom change event test
-rw-r--r--test/js/dom-change-event.html17
-rw-r--r--test/js/index.html1
2 files changed, 18 insertions, 0 deletions
diff --git a/test/js/dom-change-event.html b/test/js/dom-change-event.html
new file mode 100644
index 0000000..a6d77b8
--- a/dev/null
+++ b/test/js/dom-change-event.html
@@ -0,0 +1,17 @@
+<html>
+ <head>
+ <title>DOM Change event handling</title>
+ <script type="text/javascript">
+ document.addEventListener("DOMNodeInserted",
+ function(ev) {
+ console.log("\n\nHELLO WORLD!\n\n");
+ console.log(ev);
+ console.log("\n\n");
+ }, false);
+ console.log("Moooo!");
+ </script>
+ </head>
+ <body>
+ <div>I got inserted</div>
+ </body>
+</html>
diff --git a/test/js/index.html b/test/js/index.html
index f282ca4..2abe954 100644
--- a/test/js/index.html
+++ b/test/js/index.html
@@ -90,6 +90,7 @@
<li><a href="event-onload.html">window.onload</a></li>
<li><a href="event-onloadfrombody.html">body.onload</a></li>
<li><a href="event-onclick.html">button.onclick</a></li>
+<li><a href="dom-change-event.html">DOMNodeInserted</a></li>
</ul>