Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/devtools/shared/tests/xpcshell/   (Firefox Browser Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  test_stack.js

  Sprache: JAVA
 

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


"use strict";

// Test stack.js.

function run_test() {
  const loader = new DevToolsLoader();
  const require = loader.require;

  const {
    StackFrameCache,
  } = require("resource://devtools/server/actors/utils/stack.js");

  const cache = new StackFrameCache();
  cache.initFrames();
  const baseFrame = {
    line: 23,
    column: 77,
    source: "nowhere",
    functionDisplayName: "nobody",
    parent: null,
    asyncParent: null,
    asyncCause: null,
  };
  cache.addFrame(baseFrame);

  let event = cache.makeEvent();
  Assert.equal(event[0], null);
  Assert.equal(event[1].functionDisplayName, "nobody");
  Assert.equal(event.length, 2);

  cache.addFrame({
    line: 24,
    column: 78,
    source: "nowhere",
    functionDisplayName: "still nobody",
    parent: null,
    asyncParent: baseFrame,
    asyncCause: "async",
  });

  event = cache.makeEvent();
  Assert.equal(event[0].functionDisplayName, "still nobody");
  Assert.equal(event[0].parent, 0);
  Assert.equal(event[0].asyncParent, 1);
  Assert.equal(event.length, 1);
}

Messung V0.5 in Prozent
C=90 H=92 G=90

¤ Dauer der Verarbeitung: 0.11 Sekunden  (vorverarbeitet am  2026-06-04) ¤

*© 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.