Add a test for Node.textContent.

This commit is contained in:
Josh Matthews 2013-09-16 23:42:10 -04:00
parent d465abdb1c
commit 89ed9580de

View file

@ -0,0 +1,17 @@
<html>
<head>
<script src="harness.js"></script>
<script>
var div = document.getElementsByTagName('div')[0];
is(div.textContent, "this is\n text content");
var newContent = "new text con\ntent";
div.textContent = newContent;
is(div.textContent, newContent);
finish();
</script>
</head>
<body>
<div>this is
text content</div>
</body>
</html>