Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/js/xpconnect/tests/unit/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 629 B image not shown  

Quelle  test_want_components.js   Sprache: JAVA

 
function run_test() {
  var sb;

  sb = Cu.Sandbox(this, {wantComponents: false});
  Assert.equal(Cu.evalInSandbox("this.Components", sb), undefined);
  Assert.equal(Cu.evalInSandbox("this.Services", sb), undefined);

  sb = Cu.Sandbox(this, {wantComponents: true});
  Assert.equal(Cu.evalInSandbox("typeof this.Components", sb), "object");
  Assert.equal(Cu.evalInSandbox("typeof this.Services", sb), "object");

  // wantComponents defaults to true.
  sb = Cu.Sandbox(this, {});
  Assert.equal(Cu.evalInSandbox("typeof this.Components", sb), "object");
  Assert.equal(Cu.evalInSandbox("typeof this.Services", sb), "object");
}

Messung V0.5
C=89 H=100 G=94

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

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.