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 998 B image not shown  

Quelle  test_cache2-30a-entry-pinning.js   Sprache: JAVA

 
"use strict";

function run_test() {
  do_get_profile();

  // Open for write, write
  asyncOpenCacheEntry(
    "http://a/",
    "pin",
    Ci.nsICacheStorage.OPEN_TRUNCATE,
    Services.loadContextInfo.default,
    new OpenCallback(NEW | WAITFORWRITE, "a1m""a1d"function () {
      // Open for read and check
      asyncOpenCacheEntry(
        "http://a/",
        "disk",
        Ci.nsICacheStorage.OPEN_NORMALLY,
        Services.loadContextInfo.default,
        new OpenCallback(NORMAL, "a1m""a1d"function () {
          // Now clear the whole cache
          Services.cache2.clear();

          // The pinned entry should be intact
          asyncOpenCacheEntry(
            "http://a/",
            "disk",
            Ci.nsICacheStorage.OPEN_NORMALLY,
            Services.loadContextInfo.default,
            new OpenCallback(NORMAL, "a1m""a1d"function () {
              finish_cache2_test();
            })
          );
        })
      );
    })
  );

  do_test_pending();
}

Messung V0.5
C=83 H=100 G=91

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