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
25
tests/content/test_node_contains.html
Normal file
25
tests/content/test_node_contains.html
Normal file
|
@ -0,0 +1,25 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<script src="harness.js"></script>
|
||||
<script>
|
||||
// test1: Node.contains
|
||||
{
|
||||
var parent = document.createElement("div");
|
||||
var child = document.createElement("div");
|
||||
var child_of_child = document.createElement("div");
|
||||
var other = document.createElement("div");
|
||||
|
||||
child.appendChild(child_of_child);
|
||||
parent.appendChild(child);
|
||||
|
||||
is(parent.contains(parent), true, "test1-0, Node.contains");
|
||||
is(parent.contains(child), true, "test1-1, Node.contains");
|
||||
is(parent.contains(child_of_child), true, "test1-2, Node.contains");
|
||||
is(parent.contains(other), false, "test1-3, Node.contains");
|
||||
}
|
||||
|
||||
finish();
|
||||
</script>
|
||||
</head>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue