mirror of
https://github.com/servo/servo.git
synced 2025-06-12 18:34:39 +00:00
23 lines
734 B
HTML
23 lines
734 B
HTML
<!doctype html>
|
|
<html>
|
|
<head>
|
|
<title>Node.insertBefore</title>
|
|
<script src="harness.js"></script>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript">
|
|
// test1: insertBefore
|
|
{
|
|
var root = document.createElement("div");
|
|
var after = document.createElement("div");
|
|
var before = document.createElement("div");
|
|
|
|
root.appendChild(after);
|
|
|
|
is(root.insertBefore(before, after), before, "test1-0, insertBefore");
|
|
is(root.childNodes[0], before, "test1-1, insertBefore");
|
|
is(root.childNodes[1], after, "test1-2, insertBefore");
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|