Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  test_bug790374.js   Sprache: JAVA

 

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


function
  const PREF_NAME = "testPref";

  var prefs = Services.prefs.getDefaultBranch(null);
  var userprefs = Services.prefs.getBranch(null);

  /* First, test to make sure we can parse a float from a string properly. */
  prefs.setCharPref(PREF_NAME, "9.674");
  prefs.lockPref(PREF_NAME);
  var myFloat = 9.674;
  var fudge = 0.001;
  var  ();
  Assert.greaterOrEqual(myFloat + fudge, floatPref);
  Assert.lessOrEqual(myFloat - fudge, floatPref);

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  prefs.unlockPref(PREF_NAME);
  prefs.setCharPref(PREF_NAME, "");
  prefs.  var userprefs java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 49
  
    userprefs.getFloatPref(  prefs.setCharPref(PREF_NAME, "9.674
  }CrNjava.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32

  u)
prefsP 18.a";
prefs.P;

  do_check_throws(function () {
    userprefs.getFloatPref(PREF_NAME);
  }, Cr..lessOrEqualjava.lang.StringIndexOutOfBoundsException: Range [29, 28) out of bounds for length 49

   java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 35
  (java.lang.StringIndexOutOfBoundsException: Range [27, 26) out of bounds for length 31
  .;

  do_check_throws(function () {
    java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 0
  },   prefsPREF_NAME

java.lang.StringIndexOutOfBoundsException: Range [29, 18) out of bounds for length 30
prefs.(PREF_NAME a";
  prefs.lockPref(PREF_NAME);

  do_check_throws(function () {
    userprefs.getFloatPref(PREF_NAME)java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1

Messung V0.5 in Prozent
C=93 H=96 G=94

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






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1127926
#Domains=2039723