products/Sources/formale Sprachen/JAVA/Openclaw/scripts/docs-i18n/   (Firefox Browser Version 153.0.1©)  Datei vom 26.3.2026 mit Größe 9 kB image not shown  

SSL browser_test_fullscreen_size.js  Sprache: unbekannt

 
"use strict";

function waitForReflow(aWindow) {
  return new Promise(resolve => {
    aWindow.requestAnimationFrame(() => {
      aWindow.requestAnimationFrame(resolve);
    });
  });
}

add_task(async function fullscreen_size() {
  let win = await BrowserTestUtils.openNewBrowserWindow({});
  win.gBrowser.selectedBrowser.focus();

  info("Enter browser fullscreen mode");
  let promise = Promise.all([
    BrowserTestUtils.waitForEvent(win, "fullscreen"),
    BrowserTestUtils.waitForEvent(win, "resize"),
  ]);
  win.fullScreen = true;
  await promise;

  info("Await reflow of the chrome window");
  await waitForReflow(win);

  is(win.innerHeight, win.outerHeight, "Check height");
  is(win.innerWidth, win.outerWidth, "Check width");

  await BrowserTestUtils.closeWindow(win);
});

// https://bugzilla.mozilla.org/show_bug.cgi?id=1830721
add_task(async function fullscreen_size_moz_appearance() {
  const win = await BrowserTestUtils.openNewBrowserWindow({});
  win.gBrowser.selectedBrowser.focus();

  info("Add -moz-appearance style to chrome document");
  const style = win.document.createElement("style");
  style.innerHTML = `
    #main-window {
      -moz-appearance: button;
    }
  `;
  win.document.head.appendChild(style);

  info("Await reflow of the chrome window");
  await waitForReflow(win);

  info("Enter browser fullscreen mode");
  let promise = Promise.all([
    BrowserTestUtils.waitForEvent(win, "fullscreen"),
    BrowserTestUtils.waitForEvent(win, "resize"),
  ]);
  win.fullScreen = true;
  await promise;

  info("Await reflow of the chrome window");
  await waitForReflow(win);

  is(win.innerHeight, win.outerHeight, "Check height");
  is(win.innerWidth, win.outerWidth, `Check width`);

  await BrowserTestUtils.closeWindow(win);
});

Messung V0.5 in Prozent
C=95 H=95 G=94

[Verzeichnis aufwärts0.14unsichere VerbindungÜbersetzung europäischer Sprachen durch Browser2026-09-27]