Add reftests for fullscreen mode

This commit is contained in:
Alan Jeffrey 2019-02-01 17:15:14 -06:00
parent 871fe9306f
commit d2862094ec
7 changed files with 123 additions and 2 deletions

View file

@ -3164,8 +3164,20 @@ impl Document {
if !pending.fullscreen_element_ready_check() {
error = true;
}
// TODO fullscreen is supported
// TODO This algorithm is allowed to request fullscreen.
if PREFS
.get("dom.fullscreen.test")
.as_boolean()
.unwrap_or(false)
{
// For reftests we just take over the current window,
// and don't try to really enter fullscreen.
info!("Tests don't really enter fullscreen.");
} else {
// TODO fullscreen is supported
// TODO This algorithm is allowed to request fullscreen.
warn!("Fullscreen not supported yet");
}
// Step 5 Parallel start