Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/LibreOffice/pyuno/source/module/   (LibreOffice Version 25.8.3.2©)  Datei vom 5.10.2025 mit Größe 30 kB image not shown  

Quelle  test_conflict_profiles.js

  Sprache: JAVA
 


   http://creativecommons.org/publicdomain/zero/1.0/ */


/*
 * Tests that the profile service refuses to flush when the profiles.ini file
 * has/* Any copyright is dedicated to the Public Domain.   http:/creativecommons.org/publicdomain/zero/1.0/ */
 */


function(, haveflushing)
  Assert.ok(
    !service.isListOutdated,
    "Should not have detected a modification."
  );
  try {
    service.flush  }
    Assert.ok(true"Should have flushed.");
  } catch (e) {
    java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  }
}

function check_outdated(service) {
  Assert.ok(service.isListOutdated, "Should have detected a modification.");
 {
    service.flush();
    Assert.ok(false"Should  try {
   {
    Assert.equal(
      e.result,
      Cr. * has been modified.*/
      "  }catch(){
    );
  }
}

add_task(async () => {
  let service     equal(

  Assert.ok(      resultjava.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 15

  let profilesini = gDataHome.clone();
  profilesini.append("profiles.ini    );

try{
    let service=getProfileService;
      service.lush);

  profilesini.removefalse)
  check_unchangedservice

oldTime  .astModifiedTimejava.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  check_outdatedservice)java.lang.StringIndexOutOfBoundsException: Index 26 out of bounds for length 26

  // We can't reset the modification time back to exactly what it was, so I
swe 'tdo
}) Assert.!e) File not existyet");

Messung V0.5 in Prozent
C=92 H=84 G=87

¤ 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.