HTMLSlotElement-interface.html
Details
- Test
/shadow-dom/HTMLSlotElement-interface.html- Harness
- OK
Subtests
| Status | Subtest |
|---|---|
| FAIL | HTMLSlotElement must be defined on window assert_equals: HTMLSlotElement should inherit from HTMLElement expected Node object of unknown type but got Node object of unknown type |
| PASS | "name" attribute on HTMLSlotElement must reflect "name" attribute |
| PASS | assignedNodes() on a HTMLSlotElement must return an empty array when the slot element is not in a tree or in a document tree |
| PASS | assignedNodes({"flattened":false}) on a HTMLSlotElement must return an empty array when the slot element is not in a tree or in a document tree |
| PASS | assignedNodes({"flattened":true}) on a HTMLSlotElement must return an empty array when the slot element is not in a tree or in a document tree |
| FAIL | assignedNodes() must return the list of assigned nodes when none of the assigned nodes themselves are slots assert_array_equals: assignedNodes() on a default slot must not return an element with non-empty slot attribute lengths differ, expected array [] length 0, got [Element node <p slot="foo"></p>] length… |
| FAIL | assignedNodes({"flattened":false}) must return the list of assigned nodes when none of the assigned nodes themselves are slots assert_array_equals: assignedNodes() on a default slot must not return an element with non-empty slot attribute lengths differ, expected array [] length 0, got [Element node <p slot="foo"></p>] length… |
| FAIL | assignedNodes({"flattened":true}) must return the list of assigned nodes when none of the assigned nodes themselves are slots assert_array_equals: assignedNodes() on a default slot must not return an element with non-empty slot attribute lengths differ, expected array [] length 0, got [Element node <p slot="foo"></p>] length… |
| FAIL | assignedNodes() must update when slot and name attributes are modified assert_array_equals: assignedNodes must be empty when there are no matching elements for the slot name lengths differ, expected array [] length 0, got [Element node <p></p>, Element node <b></b>] leng… |
| FAIL | assignedNodes({"flattened":false}) must update when slot and name attributes are modified assert_array_equals: assignedNodes must be empty when there are no matching elements for the slot name lengths differ, expected array [] length 0, got [Element node <p></p>, Element node <b></b>] leng… |
| FAIL | assignedNodes({"flattened":true}) must update when slot and name attributes are modified assert_array_equals: assignedNodes must be empty when there are no matching elements for the slot name lengths differ, expected array [] length 0, got [Element node <p></p>, Element node <b></b>] leng… |
| PASS | assignedNodes() must update when a default slot is introduced dynamically by a slot rename |
| PASS | assignedNodes({"flattened":false}) must update when a default slot is introduced dynamically by a slot rename |
| PASS | assignedNodes({"flattened":true}) must update when a default slot is introduced dynamically by a slot rename |
| FAIL | assignedNodes() must update when slot elements are inserted or removed assert_array_equals: assignedNodes on a default slot must return the elements without slot attributes and text nodes lengths differ, expected array [Element node <p></p>, Text node "", Element node <b… |
| FAIL | assignedNodes({"flattened":false}) must update when slot elements are inserted or removed assert_array_equals: assignedNodes on a default slot must return the elements without slot attributes and text nodes lengths differ, expected array [Element node <p></p>, Text node "", Element node <b… |
| FAIL | assignedNodes({"flattened":true}) must update when slot elements are inserted or removed assert_array_equals: assignedNodes on a default slot must return the elements without slot attributes and text nodes lengths differ, expected array [Element node <p></p>, Text node "", Element node <b… |
| FAIL | assignedNodes({flatten: true}) must return the distributed nodes, and assignedNodes() and assignedNodes({flatten: false}) must returned the assigned nodes assert_array_equals: assignedNodes({flatten: true}) on a default slot must return the distributed nodes expected property 0 to be Element node <span></span> but got Element node <slot></slot> (expecte… |