Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  helper_bug1719330.html

  Sprache: HTML
 

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


<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  <title>Tests that the arrow down key does not scroll by more than 1 element</title>
  <script src="/tests/SimpleTest/EventUtils.js"></script>
  <script type="application/javascript" src="apz_test_utils.js"></script>
  <script type="application/javascript" src="apz_test_native_event_utils.js"></script>
  <script src="/tests/SimpleTest/paint_listener.js"></script>
  <style>
     .time-column {
       width: 68px;
       height: 28px;

       overflow-y: scroll;
       scroll-snap-type: y mandatory;

       border-radius: 4px;
       border: 1px solid red;
     }

     .time-item {
       scroll-snap-align: center;
       height: 100%;
     }
  </style>
</head>
<body>
  <div class="time-column"></div>

  <script type="application/javascript">

    function waitForScrollEvent(target) {
      return new Promise(resolve => {
        target.addEventListener("scroll", resolve, { once: true });
      });
    }

    async function test() {
      const timeCol = document.querySelector('.time-column');

      for (let i = 0i < 60i++) {
        let item = document.createElement('div');
        item.classList.add('time-item');
        item.textContent = i;
        timeCol.appendChild(item);
      }

      is(timeCol.scrollTop, 0"should begin with no scroll (1)");

      let waitForScroll = waitForScrollEvent(timeCol);

      timeCol.focus();
      window.synthesizeKey("KEY_ArrowDown");

      await waitForScroll;

      ok(timeCol.scrollTop > 0"should have scrolled (2)");
      ok(timeCol.scrollTop < 30"should have not scrolled too far (3)");
    }

    waitUntilApzStable().then(test).then(subtestDone, subtestFailed);
  </script>
</body>
</html>

Messung V0.5 in Prozent
C=96 H=97 G=96

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© 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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002