Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/ipc/tests/JSProcessActor/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  browser_getActor.js   Sprache: JAVA

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

"use strict";

declTest("getActor on both sides", {
  async test(browser) {
    let parent = browser.browsingContext.currentWindowGlobal.domProcess;
    ok(parent, "WindowGlobalParent should have value.");
    let actorParent = parent.getActor("TestProcessActor");
    is(
      actorParent.show(),
      "TestProcessActorParent",
      "actor `show` should have value."
    );
    is(
      actorParent.manager,
      parent,
      "manager should match WindowGlobalParent.domProcess"
    );

    ok(
      actorParent.sawActorCreated,
      "Checking that we can observe parent creation"
    );

    await SpecialPowers.spawn(browser, [], async function () {
      let child = ChromeUtils.domProcessChild;
      ok(child, "WindowGlobalChild should have value.");
      let actorChild = child.getActor("TestProcessActor");
      is(
        actorChild.show(),
        "TestProcessActorChild",
        "actor show should have vaule."
      );
      is(
        actorChild.manager,
        child,
        "manager should match ChromeUtils.domProcessChild."
      );

      ok(
        actorChild.sawActorCreated,
        "Checking that we can observe child creation"
      );
    });
  },
});

Messung V0.5
C=87 H=90 G=88

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