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

Quelle  worker_helper.js   Sprache: JAVA

 
/*
 * worker_helper.js
 * bug 764234 tests
 */


// The undefined items here are used in the tests within the worker that this
// runs.
/* eslint-disable no-undef */

function runTestInWorker(files) {
  function workerRun() {
    var tests = [];
    var asserts;
    test = function (func, msg) {
      asserts = [];
      tests.push({ asserts, msg });
    };
    assert_equals = function (result, expected, msg) {
      asserts.push(["assert_equals", result, expected, msg]);
    };
    assert_true = function (condition, msg) {
      asserts.push(["assert_true", condition, msg]);
    };
    assert_unreached = function (condition, msg) {
      asserts.push(["assert_unreached", condition, msg]);
    };
    onmessage = function (event) {
      importScripts.apply(self, event.data);
      runTest();
      postMessage(tests);
    };
  }

  var url = URL.createObjectURL(
    new Blob([runTest.toString(), "\n\n""(", workerRun.toString(), ")();"])
  );
  var worker = new Worker(url);
  var base = location.toString().replace(/\/[^\/]*$/, "/");
  worker.postMessage(
    files.map(function (f) {
      return base + f;
    })
  );
  worker.onmessage = function (event) {
    URL.revokeObjectURL(url);
    event.data.forEach(function (t) {
      test(function () {
        t.asserts.forEach(function (a) {
          let func = a.shift();
          self[func].apply(self, a);
        });
      }, "worker " + t.msg);
    });
    done();
  };
}

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

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