Div
editor

Summary

Harness status: OK

Found 7 tests

Details

ResultTest NameMessage
PassDisabling the active element (making it inert)
Asserts run
Pass
assert_equals(Element node <button id="button1">Button 1</button>, Element node <button id="button1">Button 1</button>, "Sanity check: the button must start focused")
    at Test.<anonymous> ( /html/interaction/focus/processing-model/focus-fixup-rule-one-no-dialogs.html:27:3)
Pass
assert_not_equals(Element node <body><div>   <button id="button1" disabled="">Button 1</..., Element node <button id="button1" disabled="">Button 1</button>, "After disabling, the button must no longer be focused")
    at Test.<anonymous> ( /html/interaction/focus/processing-model/focus-fixup-rule-one-no-dialogs.html:31:3)
Pass
assert_equals(Element node <body><div>   <button id="button1" disabled="">Button 1</..., Element node <body><div>   <button id="button1" disabled="">Button 1</..., "After disabling, the body must be focused")
    at Test.<anonymous> ( /html/interaction/focus/processing-model/focus-fixup-rule-one-no-dialogs.html:32:3)
PassHiding the active element
Asserts run
Pass
assert_equals(Element node <button id="button2">Button 2</button>, Element node <button id="button2">Button 2</button>, "Sanity check: the button must start focused")
    at Test.<anonymous> ( /html/interaction/focus/processing-model/focus-fixup-rule-one-no-dialogs.html:40:3)
Pass
assert_not_equals(Element node <body><div>   <button id="button1" disabled="">Button 1</..., Element node <button id="button2" hidden="">Button 2</button>, "After hiding, the button must no longer be focused")
    at Test.<anonymous> ( /html/interaction/focus/processing-model/focus-fixup-rule-one-no-dialogs.html:44:3)
Pass
assert_equals(Element node <body><div>   <button id="button1" disabled="">Button 1</..., Element node <body><div>   <button id="button1" disabled="">Button 1</..., "After hiding, the body must be focused")
    at Test.<anonymous> ( /html/interaction/focus/processing-model/focus-fixup-rule-one-no-dialogs.html:45:3)
PassRemoving the active element from the DOM
Asserts run
Pass
assert_equals(Element node <button id="button3">Button 3</button>, Element node <button id="button3">Button 3</button>, "Sanity check: the button must start focused")
    at Test.<anonymous> ( /html/interaction/focus/processing-model/focus-fixup-rule-one-no-dialogs.html:53:3)
Pass
assert_not_equals(Element node <body><div>   <button id="button1" disabled="">Button 1</..., Element node <button id="button3">Button 3</button>, "After removing, the button must no longer be focused")
    at Test.<anonymous> ( /html/interaction/focus/processing-model/focus-fixup-rule-one-no-dialogs.html:57:3)
Pass
assert_equals(Element node <body><div>   <button id="button1" disabled="">Button 1</..., Element node <body><div>   <button id="button1" disabled="">Button 1</..., "After removing, the body must be focused")
    at Test.<anonymous> ( /html/interaction/focus/processing-model/focus-fixup-rule-one-no-dialogs.html:58:3)
PassDisabling <fieldset> affects its descendants
Asserts run
Pass
assert_equals(Element node <button id="button4">Button 4</button>, Element node <button id="button4">Button 4</button>, "Sanity check: the button must start focused")
    at Test.<anonymous> ( /html/interaction/focus/processing-model/focus-fixup-rule-one-no-dialogs.html:66:3)
Pass
assert_not_equals(Element node <body><div>   <button id="button1" disabled="">Button 1</..., Element node <button id="button4">Button 4</button>, "After disabling ancestor fieldset, the button must no longer be focused")
    at Test.<anonymous> ( /html/interaction/focus/processing-model/focus-fixup-rule-one-no-dialogs.html:70:3)
Pass
assert_equals(Element node <body><div>   <button id="button1" disabled="">Button 1</..., Element node <body><div>   <button id="button1" disabled="">Button 1</..., "After disabling ancestor fieldset, the body must be focused")
    at Test.<anonymous> ( /html/interaction/focus/processing-model/focus-fixup-rule-one-no-dialogs.html:71:3)
PassChanging the first legend element in disabled <fieldset>
Asserts run
Pass
assert_equals(Element node <button id="button5">Button 5</button>, Element node <button id="button5">Button 5</button>, "Sanity check: the button must start focused")
    at Test.<anonymous> ( /html/interaction/focus/processing-model/focus-fixup-rule-one-no-dialogs.html:78:3)
Pass
assert_not_equals(Element node <body><div>   <button id="button1" disabled="">Button 1</..., Element node <button id="button5">Button 5</button>, "After changing a legend element, the button must no longer be focused")
    at Test.<anonymous> ( /html/interaction/focus/processing-model/focus-fixup-rule-one-no-dialogs.html:82:3)
Pass
assert_equals(Element node <body><div>   <button id="button1" disabled="">Button 1</..., Element node <body><div>   <button id="button1" disabled="">Button 1</..., "After changing a legend element, the body must be focused")
    at Test.<anonymous> ( /html/interaction/focus/processing-model/focus-fixup-rule-one-no-dialogs.html:83:3)
PassRemoving the tabindex attribute from a div
Asserts run
Pass
assert_equals(Element node <div id="div" tabindex="0">Div</div>, Element node <div id="div" tabindex="0">Div</div>, "Sanity check: the div must start focused")
    at Test.<anonymous> ( /html/interaction/focus/processing-model/focus-fixup-rule-one-no-dialogs.html:90:3)
Pass
assert_not_equals(Element node <body><div>   <button id="button1" disabled="">Button 1</..., Element node <div id="div">Div</div>, "After removing tabindex, the div must no longer be focused")
    at Test.<anonymous> ( /html/interaction/focus/processing-model/focus-fixup-rule-one-no-dialogs.html:94:3)
Pass
assert_equals(Element node <body><div>   <button id="button1" disabled="">Button 1</..., Element node <body><div>   <button id="button1" disabled="">Button 1</..., "After removing tabindex, the body must be focused")
    at Test.<anonymous> ( /html/interaction/focus/processing-model/focus-fixup-rule-one-no-dialogs.html:95:3)
PassDisabling contenteditable
Asserts run
Pass
assert_equals(Element node <div id="editable" contenteditable="true">editor</div>, Element node <div id="editable" contenteditable="true">editor</div>, "Sanity check: the div must start focused")
    at Test.<anonymous> ( /html/interaction/focus/processing-model/focus-fixup-rule-one-no-dialogs.html:102:3)
Pass
assert_not_equals(Element node <body><div>   <button id="button1" disabled="">Button 1</..., Element node <div id="editable" contenteditable="false">editor</div>, "After disabling contentEditable, the div must no longer be focused")
    at Test.<anonymous> ( /html/interaction/focus/processing-model/focus-fixup-rule-one-no-dialogs.html:106:3)
Pass
assert_equals(Element node <body><div>   <button id="button1" disabled="">Button 1</..., Element node <body><div>   <button id="button1" disabled="">Button 1</..., "After disabling contentEditable, the body must be focused")
    at Test.<anonymous> ( /html/interaction/focus/processing-model/focus-fixup-rule-one-no-dialogs.html:107:3)