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


Quelle  audit.js   Sprache: JAVA

 
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


"use strict";

/**
 * A helper class that contains the state of the audit progress performed by
 * the accessibility panel. Its onProgressForWalker function wraps around the
 * onProgress function (see actions/audit.js) that updates the panel state. It
 * combines the audits across multiple frames that happen asynchronously. It
 * only starts dispatching/calling onProgress after we get an initial progress
 * audit-event from all frames (and thus know the combined total).
 */

class CombinedProgress {
  constructor({ onProgress, totalFrames }) {
    this.onProgress = onProgress;
    this.totalFrames = totalFrames;
    this.combinedProgress = new Map();
  }

  onProgressForWalker(walker, progress) {
    this.combinedProgress.set(walker, progress);
    // We did not get all initial progress events from all frames, do not
    // relay them to the client until we can calculate combined total below.
    if (this.combinedProgress.size < this.totalFrames) {
      return;
    }

    let combinedTotal = 0;
    let combinedCompleted = 0;

    for (const { completed, total } of this.combinedProgress.values()) {
      combinedTotal += total;
      combinedCompleted += completed;
    }
    this.onProgress({
      total: combinedTotal,
      percentage: Math.round((combinedCompleted / combinedTotal) * 100),
    });
  }
}

exports.CombinedProgress = CombinedProgress;
exports.isFiltered = filters => Object.values(filters).some(active => active);

Messung V0.5
C=95 H=90 G=92

¤ Dauer der Verarbeitung: 0.12 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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge