From 86d83d54e9c92830c89d2a8c0edb30b78ac5e5e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20J=C3=A4genstedt?= Date: Tue, 15 Nov 2022 10:19:56 +0100 Subject: [PATCH] Test that element.requestFullscreen() consumes user activation This makes a bunch of other tests redundant, as they're also calling requestFullscreen() twice, and should all fail in exactly the same way. element-request-fullscreen-same-manual.html is also converted to ensure that a second call in a new click does work, to ensure the failure isn't because the element is the same as the fullscreen element. Follows https://github.com/whatwg/fullscreen/pull/153. --- ...st-fullscreen-consume-user-activation.html | 28 ++++++++ ...ement-request-fullscreen-same-element.html | 25 +++++++ ...lement-request-fullscreen-same-manual.html | 30 --------- ...ement-request-fullscreen-twice-manual.html | 27 -------- ...est-fullscreen-twice-manual.tentative.html | 46 ------------- ...equest-fullscreen-two-elements-manual.html | 37 ----------- ...lscreen-two-elements-manual.tentative.html | 56 ---------------- ...request-fullscreen-two-iframes-manual.html | 48 -------------- ...llscreen-two-iframes-manual.tentative.html | 65 ------------------- 9 files changed, 53 insertions(+), 309 deletions(-) create mode 100644 fullscreen/api/element-request-fullscreen-consume-user-activation.html create mode 100644 fullscreen/api/element-request-fullscreen-same-element.html delete mode 100644 fullscreen/api/element-request-fullscreen-same-manual.html delete mode 100644 fullscreen/api/element-request-fullscreen-twice-manual.html delete mode 100644 fullscreen/api/element-request-fullscreen-twice-manual.tentative.html delete mode 100644 fullscreen/api/element-request-fullscreen-two-elements-manual.html delete mode 100644 fullscreen/api/element-request-fullscreen-two-elements-manual.tentative.html delete mode 100644 fullscreen/api/element-request-fullscreen-two-iframes-manual.html delete mode 100644 fullscreen/api/element-request-fullscreen-two-iframes-manual.tentative.html diff --git a/fullscreen/api/element-request-fullscreen-consume-user-activation.html b/fullscreen/api/element-request-fullscreen-consume-user-activation.html new file mode 100644 index 00000000000000..8c509f76a3a1dc --- /dev/null +++ b/fullscreen/api/element-request-fullscreen-consume-user-activation.html @@ -0,0 +1,28 @@ + +Element#requestFullscreen() consumes user activation + + + + +
+ diff --git a/fullscreen/api/element-request-fullscreen-same-element.html b/fullscreen/api/element-request-fullscreen-same-element.html new file mode 100644 index 00000000000000..904056132e61e3 --- /dev/null +++ b/fullscreen/api/element-request-fullscreen-same-element.html @@ -0,0 +1,25 @@ + +Element#requestFullscreen() on the current fullscreen element + + + + +
+ diff --git a/fullscreen/api/element-request-fullscreen-same-manual.html b/fullscreen/api/element-request-fullscreen-same-manual.html deleted file mode 100644 index defe9ce54d07eb..00000000000000 --- a/fullscreen/api/element-request-fullscreen-same-manual.html +++ /dev/null @@ -1,30 +0,0 @@ - -Element#requestFullscreen() on the current fullscreen element - - - -
-
- diff --git a/fullscreen/api/element-request-fullscreen-twice-manual.html b/fullscreen/api/element-request-fullscreen-twice-manual.html deleted file mode 100644 index 06641deb48b119..00000000000000 --- a/fullscreen/api/element-request-fullscreen-twice-manual.html +++ /dev/null @@ -1,27 +0,0 @@ - -Element#requestFullscreen() twice - - - -
- diff --git a/fullscreen/api/element-request-fullscreen-twice-manual.tentative.html b/fullscreen/api/element-request-fullscreen-twice-manual.tentative.html deleted file mode 100644 index a8b5531fa1835a..00000000000000 --- a/fullscreen/api/element-request-fullscreen-twice-manual.tentative.html +++ /dev/null @@ -1,46 +0,0 @@ - - -Element#requestFullscreen() twice - - - -
- diff --git a/fullscreen/api/element-request-fullscreen-two-elements-manual.html b/fullscreen/api/element-request-fullscreen-two-elements-manual.html deleted file mode 100644 index 11baad7da7885b..00000000000000 --- a/fullscreen/api/element-request-fullscreen-two-elements-manual.html +++ /dev/null @@ -1,37 +0,0 @@ - -Element#requestFullscreen() on two elements in the same document - - - -
-
-
- diff --git a/fullscreen/api/element-request-fullscreen-two-elements-manual.tentative.html b/fullscreen/api/element-request-fullscreen-two-elements-manual.tentative.html deleted file mode 100644 index 5ebc628b3b3b56..00000000000000 --- a/fullscreen/api/element-request-fullscreen-two-elements-manual.tentative.html +++ /dev/null @@ -1,56 +0,0 @@ - - -Element#requestFullscreen() on two elements in the same document - - - -
-
-
- diff --git a/fullscreen/api/element-request-fullscreen-two-iframes-manual.html b/fullscreen/api/element-request-fullscreen-two-iframes-manual.html deleted file mode 100644 index 916ae7969502ce..00000000000000 --- a/fullscreen/api/element-request-fullscreen-two-iframes-manual.html +++ /dev/null @@ -1,48 +0,0 @@ - -Element#requestFullscreen() on two elements in different iframes - - - - -
- - - diff --git a/fullscreen/api/element-request-fullscreen-two-iframes-manual.tentative.html b/fullscreen/api/element-request-fullscreen-two-iframes-manual.tentative.html deleted file mode 100644 index 691c221904e90c..00000000000000 --- a/fullscreen/api/element-request-fullscreen-two-iframes-manual.tentative.html +++ /dev/null @@ -1,65 +0,0 @@ - - -Element#requestFullscreen() on two elements in different iframes - - - - -
- - -