Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/devtools/shared/webconsole/test/chrome/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 2 kB image not shown  

Quelle  test_basics.html   Sprache: HTML

 
 products/Sources/formale Sprachen/C/Firefox/devtools/shared/webconsole/test/chrome/test_basics.html


<!DOCTYPE HTML>
<html lang="en">
<head>
  <meta charset="utf8">
  <title>Basic Web Console Actor tests</title>
  <script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>
  <script type="text/javascript" src="common.js"></script>
  <!-- Any copyright is dedicated to the Public Domain.
     - http://creativecommons.org/publicdomain/zero/1.0/ -->

</head>
<body>
<p>Basic Web Console Actor tests</p>

<script class="testbody" type="text/javascript">
"use strict";

SimpleTest.waitForExplicitFinish();

async function startTest()
{
  removeEventListener("load", startTest);

  let {state, response} = await attachConsoleToTab(["PageError"]);
  is(response.startedListeners.length, 1, "startedListeners.length");
  is(response.startedListeners[0], "PageError""startedListeners: PageError");

  await closeDebugger(state);
  top.console_ = top.console;
  top.console = { lolz: "foo" };
  ({state, response} = await attachConsoleToTab(["PageError""ConsoleAPI""foo"]));

  const startedListeners = response.startedListeners;
  is(startedListeners.length, 2, "startedListeners.length");
  isnot(startedListeners.indexOf("PageError"), -1, "startedListeners: PageError");
  isnot(startedListeners.indexOf("ConsoleAPI"), -1,
        "startedListeners: ConsoleAPI");
  is(startedListeners.indexOf("foo"), -1, "startedListeners: no foo");

  top.console = top.console_;
  response = await state.webConsoleFront.stopListeners(["ConsoleAPI""foo"]);

  is(response.stoppedListeners.length, 1, "stoppedListeners.length");
  is(response.stoppedListeners[0], "ConsoleAPI""stoppedListeners: ConsoleAPI");
  await closeDebugger(state);
  ({state, response} = await attachConsoleToTab(["ConsoleAPI"]));

  is(response.startedListeners.length, 1, "startedListeners.length");
  is(response.startedListeners[0], "ConsoleAPI""startedListeners: ConsoleAPI");

  top.console = top.console_;
  delete top.console_;

  closeDebugger(state, function() {
    SimpleTest.finish();
  });
}

addEventListener("load", startTest);
</script>
</body>
</html>

Messung V0.5
C=95 H=97 G=95

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

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