diff --git a/testing/web-platform/tests/html/semantics/popups/popup-focus.tentative.html b/testing/web-platform/tests/html/semantics/popups/popup-focus.tentative.html index 0ab90bbf55457..76cc33261eaf8 100644 --- a/testing/web-platform/tests/html/semantics/popups/popup-focus.tentative.html +++ b/testing/web-platform/tests/html/semantics/popups/popup-focus.tentative.html @@ -123,7 +123,7 @@ button.remove(); }); popUp.id = popUpId; - button.setAttribute('togglepopup', popUpId); + button.setAttribute('popuptoggletarget', popUpId); return button; } function addPriorFocus(t) { @@ -218,7 +218,7 @@ const priorFocus = addPriorFocus(t); assert_false(popUp.matches(':top-layer'), 'pop-up should start out hidden'); let button = addInvoker(t, popUp); - assert_equals(button.getAttribute('togglepopup'), popUp.id, 'This test assumes the button uses `togglepopup`.'); + assert_equals(button.getAttribute('popuptoggletarget'), popUp.id, 'This test assumes the button uses `popuptoggletarget`.'); assert_not_equals(button, priorFocus, 'Stranger things have happened'); assert_false(popUp.contains(button), 'Start with a non-contained button'); priorFocus.focus(); @@ -231,8 +231,8 @@ await finishAnimationsAndVerifyHide(popUp); // Same thing, but the button is contained within the pop-up - button.removeAttribute('togglepopup'); - button.setAttribute('hidepopup', popUp.id); + button.removeAttribute('popuptoggletarget'); + button.setAttribute('popuphidetarget', popUp.id); popUp.appendChild(button); priorFocus.focus(); popUp.showPopUp(); @@ -245,7 +245,7 @@ assert_equals(document.activeElement, priorFocus, 'Contained button should return focus to the previously focused element'); await finishAnimationsAndVerifyHide(popUp); - // Same thing, but the button is unrelated (no togglepopup) + // Same thing, but the button is unrelated (no popuptoggletarget) button = document.createElement('button'); document.body.appendChild(button); priorFocus.focus(); diff --git a/testing/web-platform/tests/html/semantics/popups/popup-invoking-attribute.tentative.html b/testing/web-platform/tests/html/semantics/popups/popup-invoking-attribute.tentative.html index 6b356c1563b77..dbc3a1f435561 100644 --- a/testing/web-platform/tests/html/semantics/popups/popup-invoking-attribute.tentative.html +++ b/testing/web-platform/tests/html/semantics/popups/popup-invoking-attribute.tentative.html @@ -123,9 +123,9 @@ assert_equals(popUp2.popUp,type); assert_not_equals(popUp1.id,popUp2.id); const invoker = testcase.makeElement(test); - if (t) invoker.setAttribute('togglepopup',t===1 ? popUp1.id : popUp2.id); - if (s) invoker.setAttribute('showpopup',s===1 ? popUp1.id : popUp2.id); - if (h) invoker.setAttribute('hidepopup',h===1 ? popUp1.id : popUp2.id); + if (t) invoker.setAttribute('popuptoggletarget',t===1 ? popUp1.id : popUp2.id); + if (s) invoker.setAttribute('popupshowtarget',s===1 ? popUp1.id : popUp2.id); + if (h) invoker.setAttribute('popuphidetarget',h===1 ? popUp1.id : popUp2.id); assert_true(!document.getElementById(popUp1.id)); assert_true(!document.getElementById(popUp2.id)); document.body.appendChild(popUp1); @@ -184,7 +184,7 @@ - +
This is pop-up #1
- - + + Outside all popups
Inside popup 1 - + Inside popup 1 after button
@@ -145,9 +145,9 @@ await waitForRender(); p1HideCount = popup1HideCount; await clickOn(button1toggle); - assert_false(popup1.matches(':top-layer'),'popup1 should be hidden by togglepopup'); - assert_equals(popup1HideCount,p1HideCount+1,'popup1 should get hidden only once by togglepopup'); - },'Clicking on togglepopup element, even if it wasn\'t used for activation, should hide it exactly once'); + assert_false(popup1.matches(':top-layer'),'popup1 should be hidden by popuptoggletarget'); + assert_equals(popup1HideCount,p1HideCount+1,'popup1 should get hidden only once by popuptoggletarget'); + },'Clicking on popuptoggletarget element, even if it wasn\'t used for activation, should hide it exactly once'); promise_test(async () => { popup1.showPopUp(); @@ -180,11 +180,11 @@ },'Dragging from an open popup outside an open popup should leave the popup open'); -
Inside popup 3
-