aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrabhjyot Singh Sodhi <prabhjyotsingh95@gmail.com>2016-02-16 00:24:35 +0530
committerPrabhjyot Singh Sodhi <prabhjyotsingh95@gmail.com>2016-02-16 00:24:35 +0530
commitae80b9bcf07c14125fe7d0951505cdfb652eefd9 (patch)
treef415ace96e7124950a04eb8cc68eb32451098872
parent87c6889f44f67e9c8a186e1b4d95066a4e67ecd3 (diff)
downloadservo-ae80b9bcf07c14125fe7d0951505cdfb652eefd9.tar.gz
servo-ae80b9bcf07c14125fe7d0951505cdfb652eefd9.zip
fix Node-isEqualNode.html test failure
-rw-r--r--components/script/dom/node.rs2
-rw-r--r--tests/wpt/metadata/dom/nodes/Node-isEqualNode.html.ini5
2 files changed, 1 insertions, 6 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs
index 5e02dc3d0e6..c42635a3762 100644
--- a/components/script/dom/node.rs
+++ b/components/script/dom/node.rs
@@ -2134,7 +2134,7 @@ impl NodeMethods for Node {
}
fn is_equal_node(this: &Node, node: &Node) -> bool {
// Step 2.
- if this.type_id() != node.type_id() {
+ if this.NodeType() != node.NodeType() {
return false;
}
diff --git a/tests/wpt/metadata/dom/nodes/Node-isEqualNode.html.ini b/tests/wpt/metadata/dom/nodes/Node-isEqualNode.html.ini
deleted file mode 100644
index c239f2eec91..00000000000
--- a/tests/wpt/metadata/dom/nodes/Node-isEqualNode.html.ini
+++ /dev/null
@@ -1,5 +0,0 @@
-[Node-isEqualNode.html]
- type: testharness
- [documents should not be compared based on properties]
- expected: FAIL
-