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

Quelle  test_suppressed_events_and_scrolling.html   Sprache: HTML

 
 products/sources/formale Sprachen/C/Firefox/dom/base/test/test_suppressed_events_and_scrolling.html


<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  <title>Test event suppression and scrolling</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" href="/tests/SimpleTest/test.css"/>
  <script>
    SimpleTest.waitForExplicitFinish();

    function run() {
      let testWin = window.open("file_suppressed_events_and_scrolling.html");
      // The order of xhrDone and didScroll is random.
      let xhrDone = false;
      let didScroll = false;
      window.onmessage = function(e) {
        let iframeWindow = testWin.document.body.firstChild.contentWindow;
        info(e.data);
        if (e.data == "doscroll") {
          iframeWindow.scrollTo(0, 1500);
        } else if (e.data == "xhr_done") {
          xhrDone = true;
          if (didScroll) {
            iframeWindow.scrollTo(0, 3000);
          }
        } else if (e.data == "didscroll") {
          if (didScroll && xhrDone) {
            // We got the second scroll event.
            ok(true, "Should have got two scroll events");
            testWin.close();
            SimpleTest.finish();
          }
          didScroll = true;
          if (xhrDone) {
            iframeWindow.scrollTo(0, 3000);
          }
        }
      }
    }
  </script>
</head>
<body onload="run()">
<p id="display"></p>
<div id="content" style="display: none"></div>
<pre id="test"></pre>
</body>
</html>

Messung V0.5
C=94 H=100 G=96

¤ Dauer der Verarbeitung: 0.20 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






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