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

Quelle  test_cache2-06-pb-mode.js   Sprache: JAVA

 
"use strict";

function exitPB() {
  Services.obs.notifyObservers(null"last-pb-context-exited");
}

function run_test() {
  do_get_profile();

  // Store PB entry
  asyncOpenCacheEntry(
    "http://p1/",
    "disk",
    Ci.nsICacheStorage.OPEN_NORMALLY,
    Services.loadContextInfo.private,
    new OpenCallback(NEW"p1m""p1d"function () {
      asyncOpenCacheEntry(
        "http://p1/",
        "disk",
        Ci.nsICacheStorage.OPEN_NORMALLY,
        Services.loadContextInfo.private,
        new OpenCallback(NORMAL, "p1m""p1d"function () {
          // Check it's there
          syncWithCacheIOThread(function () {
            var storage = getCacheStorage(
              "disk",
              Services.loadContextInfo.private
            );
            storage.asyncVisitStorage(
              new VisitCallback(1, 12, ["http://p1/"], function () {
                // Simulate PB exit
                exitPB();
                // Check the entry is gone
                storage.asyncVisitStorage(
                  new VisitCallback(0, 0, [], function () {
                    finish_cache2_test();
                  }),
                  true
                );
              }),
              true
            );
          });
        })
      );
    })
  );

  do_test_pending();
}

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

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