Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/layout/forms/test/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Impressum test_select_reframe.html   Interaktion und
PortierbarkeitHTML

 
 products/Sources/formale Sprachen/C/Firefox/layout/forms/test/test_select_reframe.html


<!doctype html>
<meta charset="utf-8">
<title>Test for page up/down in collapsed select (bug 1488828)</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<script src="/tests/SimpleTest/EventUtils.js"></script>
<link rel="stylesheet" href="/tests/SimpleTest/test.css"/>
<style>
.reframe {
  display: flex;
}
</style>
<div id="container">
  <select>
    <option>ABC</option>
    <option>DEF</option>
  </select>
</div>
<script>
(async function() {
  SimpleTest.waitForExplicitFinish();

  const utils = SpecialPowers.DOMWindowUtils;
  const select = document.querySelector("select");
  await SimpleTest.promiseFocus(window);

  ok(!select.openInParentProcess, "Should not be open")

  select.focus();
  synthesizeKey("VK_SPACE");

  ok(SpecialPowers.wrap(select).openInParentProcess, "Should open");

  const container = document.getElementById("container");
  container.getBoundingClientRect(); // flush layout

  const frameCountBeforeReframe = utils.framesConstructed;

  container.classList.add("reframe");

  container.getBoundingClientRect(); // flush layout

  ok(utils.framesConstructed > frameCountBeforeReframe, "Should have reframed");
  ok(SpecialPowers.wrap(select).openInParentProcess, "Should remain open");

  select.remove();

  container.getBoundingClientRect(); // flush layout
  ok(!SpecialPowers.wrap(select).openInParentProcess, "Should close after removal");

  SimpleTest.finish();
}());
</script>

100%


¤ 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.0.19Bemerkung:  Wie Sie bei der Firma Beratungs- und Dienstleistungen beauftragen können  ¤

*Eine klare Vorstellung vom Zielzustand






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

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 ist noch experimentell.