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

Quelle  test_breakpoint-23.js

  Sprache: JAVA
 

/* eslint-disable max-nested-callbacks */
/* Any copyright is dedicated to the Public Domain.
   http://creativecommons.org/publicdomain/zero/1.0/ */


"use strict";

/**
 * Bug 1552453 - Verify that breakpoints are hit for evaluated
 * scripts that contain a source url pragma.
 */

add_task(
  threadFrontTest(async ({ commands, threadFront }) => {
    await threadFront.setBreakpoint(
      { sourceUrl: "http://example.com/code.js", line: 2, column: 1 },
      {}
    );

    info("Create a new script with the displayUrl code.js");
    const onNewSource = waitForEvent(threadFront, "newSource");
    await commands.scriptCommand.execute(
      "function f() {\n return 5; \n}\n//# sourceURL=http://example.com/code.js"
    );
    const sourcePacket = await onNewSource;

    equal(sourcePacket.source.url, "http://example.com/code.js");

    info("Evaluate f() and pause at line 2");
    const onExecutionDone = commands.scriptCommand.execute("f()");
    const pausedPacket = await waitForPause(threadFront);
    equal(pausedPacket.why.type, "breakpoint");
    equal(pausedPacket.frame.where.line, 2);
    resume(threadFront);
    await onExecutionDone;
  })
);

Messung V0.5 in Prozent
C=93 H=95 G=93

¤ Dauer der Verarbeitung: 0.19 Sekunden  (vorverarbeitet am  2026-06-08) ¤

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