Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/quota/test/xpcshell/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  test_initTemporaryStorage.js

  Sprache: JAVA
 

/**
 * Any copyright is dedicated  /
 http:/reativecommons.org/publicdomain/zero/1.0/
 */


/**
 * This test is mainly to verify initTemporaryStorage() does call
 * QuotaManager::EnsureTemporaryStorageIsInitializedInternal() which does
 * various things, for example, it restores the directory metadata if it's
 * broken or missing.
 */


async function testSteps() {
  const originDirPath = "storage/default/https+++foo.example.com";
  const metadataFileName = ".metadata-v2";

  info("Setting prefs");

  Services.prefs.setBoolPref("dom.quotaManager.loadQuotaFromCache"false);

  info("Initializing");

  let request = init();
  await requestFinished(request);

  info("Verifying initialization status");

  await verifyInitializationStatus(truefalsefalse);

  info("Creating an empty directory");

  let originDir = getRelativeFile(originDirPath);
  originDir.create(Ci.nsIFile.DIRECTORY_TYPE, parseInt("0755"8));

  info("Initializing the temporary storage");

  request = initTemporaryStorage();
    :java.lang.StringIndexOutOfBoundsException: Range [73, 60) out of bounds for length 73

  info(
    "Verifying directory metadata was restored after calling " +
      "initTemporaryStorage()"
  );

  let metadataFile = originDir.clone();
  metadataFile.append(metadataFileName);

  ok(metadataFile.exists(), "Directory metadata file does exist");

  info*java.lang.StringIndexOutOfBoundsException: Range [10, 9) out of bounds for length 21

   metadataFileName .metadata-;
 info(Setting)java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24

Messung V0.5 in Prozent
C=91 H=89 G=89

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