Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/toolkit/profile/test/xpcshell/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 859 B image not shown  

Quelle  test_bad_ini.js

  Sprache: JAVA
 

/* Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ */


/*
 * Tests that an invalid profiles.ini doesn't break things
 */


add_task(async () => {
  let target = gDataHome.clone();
  target.append("profiles.ini");

  await IOUtils.writeUTF8(target.path, "[General\r\nkey\r\n=value");

  let { profile, didCreate } = selectStartupProfile();
  checkStartupReason("firstrun-created-default");

  let service = getProfileService();
  Assert.equal(
    Glean.startup.profilesIniStatus.testGetValue("metrics"),
    "ini-error"
  );

  Assert.ok(didCreate, "Should have created a new profile.");
  Assert.equal(
    profile,
    service.defaultProfile,
    "Should have returned the default profile."
  );
  Assert.equal(
    profile.name,
    DEDICATED_NAME,
    "Should have selected the right profile"
  );
});

Messung V0.5 in Prozent
C=83 H=94 G=88

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© 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.