mirror of
https://github.com/servo/servo.git
synced 2025-09-15 09:28:20 +01:00
Update web-platform-tests to revision 58133dd71b16037669a0aa011b2afd448b52d434.
This commit is contained in:
parent
84c4a26e4d
commit
88ea7c4291
192 changed files with 50802 additions and 1334 deletions
|
@ -0,0 +1,6 @@
|
|||
<!DOCTYPE html>
|
||||
<script>
|
||||
window.screen.orientation.addEventListener('change', function() {
|
||||
parent.window.postMessage(screen.orientation.type, "*");
|
||||
});
|
||||
</script>
|
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<script>
|
||||
var msg = "";
|
||||
screen.orientation.lock("portrait-primary").then(function() {
|
||||
msg = screen.orientation.type;
|
||||
}, function(error) {
|
||||
msg = error.name;
|
||||
});
|
||||
|
||||
// FIXME: for the moment, tests gets notified when there is a failure but
|
||||
// not a success, this hack should allow us to still have the test running.
|
||||
// That should be removed as soon as we get a resolved promise in tests.
|
||||
setTimeout(function() {
|
||||
parent.window.postMessage(msg, "*");
|
||||
})
|
||||
</script>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue