mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Move content tests to src/test/content for consistency
This commit is contained in:
parent
2238d81b53
commit
6f76244377
60 changed files with 2 additions and 2 deletions
25
src/test/content/test_node_insertBefore.html
Normal file
25
src/test/content/test_node_insertBefore.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
<!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");
|
||||
|
||||
finish();
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue