mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Cargoify servo
This commit is contained in:
parent
db2f642c32
commit
c6ab60dbfc
1761 changed files with 8423 additions and 2294 deletions
23
tests/content/test_caption.html
Normal file
23
tests/content/test_caption.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
<html>
|
||||
<head>
|
||||
<script src="harness.js"></script>
|
||||
</head>
|
||||
<table id="t">
|
||||
<caption id="tcaption">old caption</caption>
|
||||
</table>
|
||||
<script>
|
||||
var t = document.getElementById("t");
|
||||
var tcaption = document.getElementById("tcaption");
|
||||
is(t.caption, tcaption);
|
||||
is(t.caption.innerHTML, "old caption");
|
||||
|
||||
var newCaption = document.createElement("caption");
|
||||
newCaption.innerHTML = "new caption";
|
||||
|
||||
t.caption = newCaption;
|
||||
is(newCaption.parentNode, t);
|
||||
is(t.caption, newCaption);
|
||||
|
||||
finish();
|
||||
</script>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue