Bug 1446138 [wpt PR 10055] - Add tentative test for what ".." on documentElement returns, a=testonly
authorGeoffrey Sneddon <me@gsnedders.com>
Mon, 09 Apr 2018 17:11:31 +0000
changeset 467095 590c56a579b8a46841bd171e119bbe292a2cec22
parent 467094 6b6b32f9f694900fcdf68876e703d218293befb3
child 467096 7b6feb16ae6fe5ee0889b819b649b2b41e003893
push id9165
push userasasaki@mozilla.com
push dateThu, 26 Apr 2018 21:04:54 +0000
treeherdermozilla-beta@064c3804de2e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstestonly
bugs1446138, 10055
milestone61.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1446138 [wpt PR 10055] - Add tentative test for what ".." on documentElement returns, a=testonly Automatic update from web-platform-testsAdd test for what ".." on documentElement returns (#10055) wpt-commits: 5033883781a17999282498840c4fbf2620ebd51f wpt-pr: 10055 wpt-commits: 5033883781a17999282498840c4fbf2620ebd51f wpt-pr: 10055
testing/web-platform/meta/MANIFEST.json
testing/web-platform/tests/domxpath/document.tentative.html
--- a/testing/web-platform/meta/MANIFEST.json
+++ b/testing/web-platform/meta/MANIFEST.json
@@ -322063,16 +322063,22 @@
     ]
    ],
    "domxpath/002.html": [
     [
      "/domxpath/002.html",
      {}
     ]
    ],
+   "domxpath/document.tentative.html": [
+    [
+     "/domxpath/document.tentative.html",
+     {}
+    ]
+   ],
    "domxpath/evaluator-constructor.html": [
     [
      "/domxpath/evaluator-constructor.html",
      {}
     ]
    ],
    "domxpath/interfaces.tentative.html": [
     [
@@ -547012,16 +547018,20 @@
   "domxpath/002.html": [
    "44e057c92dd61fbc6ea081c5f328596736371e85",
    "testharness"
   ],
   "domxpath/OWNERS": [
    "a4e24143c2ef4b9a8fe64a0a07bd30594025f90e",
    "support"
   ],
+  "domxpath/document.tentative.html": [
+   "c1b93714b14b822c55d3f784e0520d91c6cc46c4",
+   "testharness"
+  ],
   "domxpath/evaluator-constructor.html": [
    "4842d40e22e25ee72536946d785a3cd03bc6a11d",
    "testharness"
   ],
   "domxpath/interfaces.tentative.html": [
    "e9539407a212ee2c3603b15d30f7840e0824d01d",
    "testharness"
   ],
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/tests/domxpath/document.tentative.html
@@ -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>