mirror of
https://github.com/servo/servo.git
synced 2025-08-27 16:18:21 +01:00
Update web-platform-tests to revision e87f38097902e16348d4e17f4fe3bc2d0112bff1
This commit is contained in:
parent
2f8fa32e91
commit
db5631a086
381 changed files with 11610 additions and 4232 deletions
|
@ -0,0 +1,20 @@
|
|||
<!doctype html>
|
||||
<title>XPath parent of documentElement</title>
|
||||
<script src='/resources/testharness.js'></script>
|
||||
<script src='/resources/testharnessreport.js'></script>
|
||||
<body>
|
||||
<script>
|
||||
test(function() {
|
||||
var result = document.evaluate("..", // expression
|
||||
document.documentElement, // context node
|
||||
null, // resolver
|
||||
XPathResult.ANY_TYPE, // type
|
||||
null); // result
|
||||
var matched = [];
|
||||
var cur;
|
||||
while ((cur = result.iterateNext()) !== null) {
|
||||
matched.push(cur);
|
||||
}
|
||||
assert_array_equals(matched, [document]);
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue