function openWindow(id) { var w = window.open("file_fullscreen-multiple-inner.html", "", "width=500,height=500");
waitForLoadAndPaint(w, function() {
SimpleTest.waitForFocus(function() {
info(`Window ${id} is focused, starting test...`);
w.begin(id);
}, w);
w.focus();
});
return w;
}
function begin() {
window1 = openWindow("one");
}
function enteredFullscreen(id) {
if (id == "one") {
window2 = openWindow("two");
} else if (id == "two") {
ok(window1.document.fullscreenElement &&
window2.document.fullscreenElement, "Both windows should be fullscreen concurrently");
window1.close();
window2.close();
opener.nextTest();
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.