Update web-platform-tests to revision 58133dd71b16037669a0aa011b2afd448b52d434.

This commit is contained in:
Ms2ger 2015-08-11 17:14:59 +02:00
parent 84c4a26e4d
commit 88ea7c4291
192 changed files with 50802 additions and 1334 deletions

View file

@ -0,0 +1,6 @@
<!DOCTYPE html>
<script>
window.screen.orientation.addEventListener('change', function() {
parent.window.postMessage(screen.orientation.type, "*");
});
</script>

View file

@ -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>