zulip/frontend_tests/casperjs/tests/site/waitFor.html

22 lines
588 B
HTML
Raw Normal View History

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>waitFor test</title>
</head>
<body>
<img src="images/phantom.png"/>
<ul>
<li>one</li>
<li>two</li>
<li>three</li>
</ul>
<script>
setTimeout(function() {
var li = document.createElement('li')
li.appendChild(document.createTextNode('four'));
document.querySelector('ul').appendChild(li);
}, 2000);
</script>
</body>
</html>