mirror of
https://github.com/servo/servo.git
synced 2025-06-23 16:44:33 +01:00
Add a test for Node.textContent.
This commit is contained in:
parent
d465abdb1c
commit
89ed9580de
1 changed files with 17 additions and 0 deletions
17
src/test/html/content/test_textcontent.html
Normal file
17
src/test/html/content/test_textcontent.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue