From 914368530ba622ff0117cd34bec058fb0d862155 Mon Sep 17 00:00:00 2001 From: Moonchild Date: Thu, 4 Feb 2021 19:41:06 +0000 Subject: Issue #439 - Remove web-platform tests from the tree. This removes a total of 23,936 files we would never use nor have the capacity to properly maintain or keep up-to-date. --- .../web-platform/tests/fullscreen/trusted-click.js | 24 ---------------------- 1 file changed, 24 deletions(-) delete mode 100644 testing/web-platform/tests/fullscreen/trusted-click.js (limited to 'testing/web-platform/tests/fullscreen/trusted-click.js') diff --git a/testing/web-platform/tests/fullscreen/trusted-click.js b/testing/web-platform/tests/fullscreen/trusted-click.js deleted file mode 100644 index 6cd4020f6..000000000 --- a/testing/web-platform/tests/fullscreen/trusted-click.js +++ /dev/null @@ -1,24 +0,0 @@ -// Invokes callback from a trusted click event, to satisfy -// https://html.spec.whatwg.org/#triggered-by-user-activation -function trusted_click(callback, container) -{ - var document = container.ownerDocument; - var button = document.createElement("button"); - button.textContent = "click to continue test"; - button.style.display = "block"; - button.style.fontSize = "20px"; - button.style.padding = "10px"; - button.onclick = function() - { - callback(); - container.removeChild(button); - }; - container.appendChild(button); -} - -// Invokes element.requestFullscreen() from a trusted click. -function trusted_request(element, container) -{ - var request = element.requestFullscreen.bind(element); - trusted_click(request, container || element.parentNode); -} -- cgit v1.2.3