Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/testing/talos/talos/tests/a11y/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 2 kB image not shown  

Quelle  dhtml.html

  Sprache: HTML
 

 products/Sources/formale Sprachen/C/Firefox/testing/talos/talos/tests/a11y/dhtml.html


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<meta charset="utf-8">
<head>
<title>accessibility perf for dhtml</title>
<script src="resource://talos-powers/TalosContentProfiler.js"></script>
<script>
  /* globals initAccessibility */
  // based on: http://hacks.mozilla.org/2010/05/better-performance-with-lazy-frame-construction/
  var ppDate = null;
  var startTime;

  function doInsertion() {
    if (!initAccessibility()) {
      dump("__FAILinit:AccessibilityUnvailable__FAIL");
      return;
    }

    TalosContentProfiler.subtestStart("a11y: Begin dhtml test", true).then(() => {
      var container = document.getElementById("container");
      var lastchild = document.getElementById("lastchild");

      startTime = window.performance.now();

      var idiv;
      for (i = 0i < 2000i++) {
        div = document.createElement("div");
        div.innerHTML = "<input type='text' value='a bc def g hijkl mn op qrs'/>";
        container.insertBefore(div, lastchild);
      }
      for (i = 0i < 2000i++) {
        div = document.createElement("div");
        div.innerHTML = "<ul><li>foo<ul><li>bar</li></ul></li><li>baz</li></ul>";
        container.insertBefore(div, lastchild);
      }
      for (i = 0i < 2000i++) {
        div = document.createElement("div");

        // eslint-disable-next-line no-unsanitized/property
        div.innerHTML = "<div role='progressbar'>progressbar</div>" +
                        "<span id='span" + i + "'>cb</span>";
        container.appendChild(div);
      }
      document.documentElement.offsetLeft; // flush layout
      setTimeout(postProcessingRecord, 0, startTime);
    });
  }

  function postProcessingRecord(start) {
    let delta = window.performance.now() - start;
    TalosContentProfiler.subtestEnd("a11y: dhtml test", true, startTime).then(() => {
      tpRecordTime(delta, window.performance.timing.navigationStart + start);
    });
  }
</script>
</head>
<body onload="doInsertion();">
  <div id="container" role="application"><div id="lastchild"></div></div>
</body>
</html>

Messung V0.5 in Prozent
C=85 H=96 G=90

¤ Dauer der Verarbeitung: 0.33 Sekunden  (vorverarbeitet am  2026-08-25) ¤

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