Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/gfx/layers/apz/test/mochitest/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  helper_hover_state.html

  Sprache: HTML
 

 products/Sources/formale Sprachen/C/Firefox/gfx/layers/apz/test/mochitest/helper_hover_state.html


<!DOCTYPE html>
<html>
<meta name="viewport" content="width=device-width; initial-scale=1.0">
<title>Tests that :hover state is changed right after touchstart</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
 <script src="/tests/SimpleTest/paint_listener.js"></script>
<script src="apz_test_utils.js"></script>
<script src="apz_test_native_event_utils.js"></script>
<style>
  html { height:200vh; }
  .test:hover { background:lime; }
  .test {
    border: 5px solid black;
    height: 100px;
    margin:  50px;
    display: block;
  }
</style>
<div class="test">DIV: Tap me and scroll</div>
<script>
async function test() {
  const target = document.querySelector(".test");
  const touchStartPromise =  promiseOneEvent(target, "touchstart");
  const touchEndPromise =  promiseOneEvent(target, "touchend");
  await promiseApzFlushedRepaints();

  await synthesizeNativeTouch(target, 1010, SpecialPowers.DOMWindowUtils.TOUCH_CONTACT);
  await touchStartPromise;

  await promiseFrame();
  await promiseFrame();
  ok(target.matches(":hover"), "should be hover");

  await synthesizeNativeTouch(target, 1010, SpecialPowers.DOMWindowUtils.TOUCH_REMOVE);
  await touchEndPromise;

  await promiseFrame();
  await promiseFrame();
  ok(target.matches(":hover"), "should be still hover");
}

if (getPlatform() == "windows") {
  // Bug 1875916. On Windows synthesizeNativeTouch(TOUCH_REMOVE) causes
  // `InjectTouchInput failure` with ERROR_TIMEOUT.
  ok(true, "Test doesn't need to run on Windows");
  subtestDone();
} else {
  waitUntilApzStable()
  .then(test)
  .then(subtestDone, subtestFailed);
}
</script>
</html>

Messung V0.5 in Prozent
C=69 H=100 G=85

¤ Dauer der Verarbeitung: 0.14 Sekunden  (vorverarbeitet am  2026-08-26) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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 und die Messung sind noch experimentell.