Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  sourcemap_header.js

  Sprache: JAVA
 

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

"use strict";

(async () => {
  SimpleTest.waitForExplicitFinish();

  const HTTP_BASE_URL = "http://mochi.test:8888/tests/dom/workers/test/";
  const IFRAME_URL = HTTP_BASE_URL + "sourcemap_header_iframe.html";
  const WORKER_URL = HTTP_BASE_URL + "sourcemap_header_worker.js";
  const DEBUGGER_URL = BASE_URL + "sourcemap_header_debugger.js";

  const workerFrame = document.getElementById("worker-frame");
  ok(workerFrame, "has frame");

  await new Promise(r => {
    workerFrame.onload = r;
    workerFrame.src = IFRAME_URL;
  });

  info("Start worker and watch for registration");
  const workerLoadedChannel = new MessageChannel();

  const loadDebuggerAndWorker = Promise.all([
    waitForRegister(WORKER_URL, DEBUGGER_URL),
    // We need to wait for the worker to load so a Debugger.Source will be
    // guaranteed to exist.
    new Promise(r => {
      workerLoadedChannel.port1.onmessage = r;
    }),
  ]);
  workerFrame.contentWindow.postMessage(WORKER_URL, "*", [
    workerLoadedChannel.port2,
  ]);
  const [dbg] = await loadDebuggerAndWorker;

  // Wait for the debugger server to reply with the sourceMapURL of the
  // loaded worker scripts.
  info("Querying for the sourceMapURL of the worker script");
  const urls = await new Promise(res => {
    dbg.addListener({
      onMessage(msg) {
        const data = JSON.parse(msg);
        if (data.type !== "response-sourceMapURL") {
          return;
        }
        dbg.removeListener(this);
        res(data.value);
      },
    });
    dbg.postMessage(
      JSON.stringify({
        type: "request-sourceMapURL",
        url: WORKER_URL,
      })
    );
  });

  ok(Array.isArray(urls) && urls.length === 1"has a single source actor");
  is(urls[0], "worker-header.js.map""has the right map URL");

  SimpleTest.finish();
})();

Messung V0.5 in Prozent
C=90 H=100 G=95

¤ Dauer der Verarbeitung: 0.14 Sekunden  (vorverarbeitet am  2026-08-24) ¤

*© 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=277311
#Domains=752002