mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update web-platform-tests and CSS tests.
- Update CSS tests to revision e05bfd5e30ed662c2f8a353577003f8eed230180. - Update web-platform-tests to revision a052787dd5c069a340031011196b73affbd68cd9.
This commit is contained in:
parent
fb4f421c8b
commit
296fa2512b
21852 changed files with 2080936 additions and 892894 deletions
|
@ -1,6 +1,6 @@
|
|||
// Invokes callback from a trusted click event, to satisfy
|
||||
// https://html.spec.whatwg.org/#triggered-by-user-activation
|
||||
function trusted_click(callback, container)
|
||||
function trusted_click(test, callback, container)
|
||||
{
|
||||
var document = container.ownerDocument;
|
||||
var button = document.createElement("button");
|
||||
|
@ -8,17 +8,16 @@ function trusted_click(callback, container)
|
|||
button.style.display = "block";
|
||||
button.style.fontSize = "20px";
|
||||
button.style.padding = "10px";
|
||||
button.onclick = function()
|
||||
button.onclick = test.step_func(function()
|
||||
{
|
||||
callback();
|
||||
container.removeChild(button);
|
||||
};
|
||||
});
|
||||
container.appendChild(button);
|
||||
}
|
||||
|
||||
// Invokes element.requestFullscreen() from a trusted click.
|
||||
function trusted_request(element, container)
|
||||
function trusted_request(test, element, container)
|
||||
{
|
||||
var request = element.requestFullscreen.bind(element);
|
||||
trusted_click(request, container || element.parentNode);
|
||||
trusted_click(test, () => element.requestFullscreen(), container || element.parentNode);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue