aria-element-reflection.html

FAILExpected5 of 27 subtests pass380 ms

Details

Test
/html/dom/aria-element-reflection.html
Harness
OK

Subtests

StatusSubtestMessage
FAILaria-activedescendant element reflection
assert_equals: invalid ID for relationship returns null expected (object) null but got (undefined) undefined
assert_equals: invalid ID for relationship returns null expected (object) null but got (undefined) undefined
FAILIf the content attribute is set directly, the IDL attribute getter always returns the first element whose ID matches the content attribute.
assert_equals: expected (object) Element node <div role="option" id="option1">Item 1</div> but got (undefined) undefined
assert_equals: expected (object) Element node <div role="option" id="option1">Item 1</div> but got (undefined) undefined
FAILSetting the IDL attribute to an element which is not the first element in DOM order with its ID causes the content attribute to be an empty string
assert_true: expected true got false
assert_true: expected true got false
FAILSetting an element reference that crosses into a shadow tree is disallowed, but setting one that is in a shadow inclusive ancestor is allowed.
assert_equals: expected (object) null but got (undefined) undefined
assert_equals: expected (object) null but got (undefined) undefined
FAILaria-errormessage
assert_equals: expected (string) "" but got (object) null
assert_equals: expected (string) "" but got (object) null
PASSariaErrorMessageElement is not defined
FAILaria-details
assert_array_equals: value is undefined, expected array
assert_array_equals: value is undefined, expected array
FAILDeleting a reflected element should return null for the IDL attribute and the content attribute will be empty.
assert_equals: expected (object) Element node <div role="option" id="contentAttrElement">Item 1</div> but got (undefined) undefined
assert_equals: expected (object) Element node <div role="option" id="contentAttrElement">Item 1</div> but got (undefined) undefined
FAILChanging the ID of an element doesn't lose the reference.
assert_equals: expected (object) Element node <div role="option" id="changingIdElement">Item 1</div> but got (undefined) undefined
assert_equals: expected (object) Element node <div role="option" id="changingIdElement">Item 1</div> but got (undefined) undefined
FAILReparenting an element into a descendant shadow scope hides the element reference.
assert_equals: null before expected (object) null but got (undefined) undefined
assert_equals: null before expected (object) null but got (undefined) undefined
FAILReparenting referenced element cannot cause retargeting of reference.
assert_equals: expected (string) "" but got (object) null
assert_equals: expected (string) "" but got (object) null
FAILElement reference set in invalid scope remains intact throughout move to valid scope.
assert_equals: expected null but got Element node <div id="toast"></div>
assert_equals: expected null but got Element node <div id="toast"></div>
FAILaria-labelledby.
assert_array_equals: parsed content attribute sets element references. value is undefined, expected array
assert_array_equals: parsed content attribute sets element references. value is undefined, expected array
FAILaria-controls.
assert_array_equals: value is undefined, expected array
assert_array_equals: value is undefined, expected array
FAILaria-describedby.
assert_array_equals: value is undefined, expected array
assert_array_equals: value is undefined, expected array
FAILaria-flowto.
assert_array_equals: value is undefined, expected array
assert_array_equals: value is undefined, expected array
FAILaria-owns.
assert_array_equals: value is undefined, expected array
assert_array_equals: value is undefined, expected array
FAILshadow DOM behaviour for FrozenArray element reflection.
assert_array_equals: value is undefined, expected array
assert_array_equals: value is undefined, expected array
FAILMoving explicitly set elements across shadow DOM boundaries.
assert_equals: expected (string) "" but got (object) null
assert_equals: expected (string) "" but got (object) null
FAILMoving explicitly set elements around within the same scope, and removing from the DOM.
assert_array_equals: aria-labelledby is supported by IDL getter. value is undefined, expected array
assert_array_equals: aria-labelledby is supported by IDL getter. value is undefined, expected array
PASSReparenting.
FAILAttaching element reference before it's inserted into the DOM.
assert_equals: Referenced element not inserted into document, so is in an invalid scope. expected null but got Element node <span id="toSpan"></span>
assert_equals: Referenced element not inserted into document, so is in an invalid scope. expected null but got Element node <span id="toSpan"></span>
FAILCross-document references and moves.
assert_equals: Cross-document is an invalid scope, so reference will not be visible. expected null but got Element node <span></span>
assert_equals: Cross-document is an invalid scope, so reference will not be visible. expected null but got Element node <span></span>
PASSAdopting element keeps references.
PASSCaching invariant different attributes.
PASSCaching invariant different elements.
FAILPassing values of the wrong type should throw a TypeError
assert_throws_js: function "() => { badInputValues.ariaActiveDescendantElement = "a string"; }" did not throw
assert_throws_js: function "() => { badInputValues.ariaActiveDescendantElement = "a string"; }" did not throw