Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/js/xpconnect/tests/unit/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 564 B image not shown  

Quelle  test_sandbox_name.js

  Sprache: JAVA
 

"use strict";

/**
 * Test that the name of a sandbox contains the name of all principals.
 */

function test_sandbox_name() {
  let names = [
    "http://example.com/?" + Math.random(),
    "http://example.org/?" + Math.random()
  ];
  let sandbox = Cu.Sandbox(names);
  let fileName = Cu.evalInSandbox(
    "(new Error()).fileName",
    sandbox,
    "latest" /*js version*/,
    ""/*file name*/
  );

  for (let name of names) {
    Assert.ok(fileName.includes(name), `Name ${name} appears in ${fileName}`);
  }
};

function run_test() {
  test_sandbox_name();
}

Messung V0.5 in Prozent
C=86 H=93 G=89

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