mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-11 05:39:41 +02:00
Automatic update from web-platform-testsSeveral fixes to manual fullscreen tests (#13102) These tests are made to start after onload so that iframe content doesn't change anymore: * fullscreen/api/element-ready-check-containing-iframe-manual.html * fullscreen/api/element-ready-check-not-allowed-manual.html * fullscreen/api/element-request-fullscreen-and-exit-iframe-manual.html * fullscreen/model/move-to-fullscreen-iframe-manual.html fullscreen/rendering/ua-style-iframe-manual.html is updated to check each subproperties individually rather than shorthand properties. fullscreen/api/element-request-fullscreen-timing-manual.html is changed so that the second test starts after an animation frame to work around Gecko throttling rAF before the first paint. Related bugs: https://bugzilla.mozilla.org/show_bug.cgi?id=1493878 https://github.com/w3c/csswg-drafts/issues/2529 -- wpt-commits: b3c7bf4261939cd1aba9b3264152a718b634ffa7 wpt-pr: 13102
25 lines
1.1 KiB
HTML
25 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<title>Element ready check for containing iframe</title>
|
|
<script src="/resources/testharness.js"></script>
|
|
<script src="/resources/testharnessreport.js"></script>
|
|
<script src="../trusted-click.js"></script>
|
|
<div id="log"></div>
|
|
<iframe allowfullscreen></iframe>
|
|
<iframe allowfullscreen></iframe>
|
|
<script>
|
|
// wait for load event to avoid https://bugzil.la/1493878
|
|
window.onload = function() {
|
|
async_test(function(t) {
|
|
var iframes = document.getElementsByTagName("iframe");
|
|
trusted_request(t, iframes[0].contentDocument.body, document.body);
|
|
iframes[0].contentDocument.onfullscreenchange = t.step_func(function() {
|
|
assert_equals(document.fullscreenElement, iframes[0]);
|
|
trusted_request(t, iframes[1].contentDocument.body, iframes[0].contentDocument.body);
|
|
iframes[1].contentDocument.onfullscreenchange = t.step_func_done(function() {
|
|
assert_equals(document.fullscreenElement, iframes[1]);
|
|
});
|
|
iframes[1].contentDocument.onfullscreenerror = t.unreached_func("fullscreenchange error");
|
|
});
|
|
});
|
|
};
|
|
</script>
|