51.5shadow-dom/leaktests/

14 / 16 WPT subtests passing

Failed
2
Timed out
0
Not run
0
Test files
4
Blocking files
0

Chrome 15 / 16 WPT subtests passing on the same files, none blocking

Tests

4 test files here

Each test file opens in place to its subtests, and each subtest that did not pass to its message.

Test fileSubtests passingChromeFailedStanding
get-elements.html5 / 5 passingChrome 5 / 50 failedClean
Standing
Clean runner status OK
Chrome
Clean 5 / 5 WPT subtests passing runner status OK
5 passing subtests
  1. getElementsById() should not leak nodes in shadow tree
  2. getElementsByClassName() should not leak nodes in shadow tree
  3. getElementsByName() should not leak nodes in shadow tree
  4. getElementsByTagName() should not leak nodes in shadow tree
  5. getElementsByTagNameNS() should not leak nodes in shadow tree
html-collection.html8 / 9 passingChrome 8 / 91 failedWith failures
Standing
With failures runner status OK
Chrome
With failures 8 / 9 WPT subtests passing runner status OK
  1. FAILdocument.all should not contain shadow nodes
    assert_greater_than: document.all should have at least 1 element. expected a number but got a "undefined"
8 passing subtests
  1. document.scripts should not contain shadow nodes
  2. document.forms should not contain shadow nodes
  3. document.images should not contain shadow nodes
  4. document.links should not contain shadow nodes
  5. document.anchors should not contain shadow nodes
  6. document.embeds should not contain shadow nodes
  7. document.plugins should not contain shadow nodes
  8. document.applets should not contain any nodes
selection.html0 / 1 passingChrome 1 / 11 failedExempt
Standing
Exempt runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK

Exempt from the 0.1 gate until a renderer answers geometry

the test drags the pointer across a closed shadow root's text to select it, and a drag selects by hit-testing laid-out text (a caret from a point: Blink SelectionController / PositionForPoint); with no renderer Crane's press places a caret only where no geometry is needed (src/html/selection_focus.zig caretAtHit), so the drag selects nothing and anchorNode stays null - the mouseup reaches the host as in the browsers

Failing assertion
assert_equals: getSelection().anchorNode should return the host of the shadow expected Element node <div id="container"><div></div></div> but got null
  1. FAILselection API should not leak nodes in Shadow DOM.
    assert_equals: getSelection().anchorNode should return the host of the shadow expected Element node <div id="container"><div></div></div> but got null
window-frames.html1 / 1 passingChrome 1 / 10 failedClean
Standing
Clean runner status OK
Chrome
Clean 1 / 1 WPT subtests passing runner status OK
1 passing subtest
  1. window.frames should not leak frames in Shadow DOM.

Written as HTML by tools/wpt_site/generate.zig from the runner’s journals and result streams; site.js adds the interactive chart, sorting, filtering and search. Faces: Source Serif 4, Public Sans and Source Code Pro, under the SIL Open Font License. Crane on GitHub.