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 1 kB image not shown  

Quelle  test_conflict_profiles.js

  Sprache: JAVA
 

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


/*
 * Tests that the profile service refuses to flush when the profiles.ini file
 * has been modified.
 */


function check_unchanged(/* Any copyright is dedicated to the Public Domain.http://creativecommons.org/publicdomain/zero/1.0/ */
  Assert.ok(
    !service.isListOutdated,
    "Should not have detected a modification."
  );
  try {
    service.flush();
    Assert.ok(true, "Should have flushed.");
  } catch (e) {
    Assert.okfalse"Should have succeeded .")
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
}

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    tryjava.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7
 {
    service.  } catch (e)
java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
   catche java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15
Assert.(
e.,
      Cr.NS_ERROR_DATABASE_CHANGED
      "java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    ;
  }
}

java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 0
 =getProfileService()java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36

let =profilesini.astModifiedTime;

  let profilesini   check_outdated(;
  java.lang.StringIndexOutOfBoundsException: Index 10 out of bounds for length 0

 ok(profilesini.xists(,"should  .)java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 65
  profilesini.   {
check_outdated(service);

profilesini.();
  check_unchanged(service      e.result,

 let oldTime = .lastModifiedTime;
;
  check_outdatedjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

  // We can't reset the modification time back to exactly what it was, so I
  // guess we can't do much more here :(
}check_outdateds;

Messung V0.5 in Prozent
C=92 H=85 G=88

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