Tests: Add simple JS test for dynamic layout.

This commit is contained in:
Michael Drake 2019-05-03 08:24:34 +01:00
parent 519f029420
commit 35e9b5de6d

View File

@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<body>
<button onclick="add_paragraph()">Click me!</button>
<script>
function add_paragraph() {
var paragraph = document.createElement("P");
var textnode = document.createTextNode("New paragraph!");
paragraph.appendChild(textnode);
document.body.appendChild(paragraph);
}
</script>
</body>
</html>