Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/base/test/jsmodules/importmaps/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 1 kB image not shown  

Quelle  test_1979050.html

  Sprache: HTML
 

 products/Sources/formale Sprachen/C/Firefox/dom/base/test/jsmodules/importmaps/test_1979050.html


<!DOCTYPE html>
<meta charset=utf-8>
<title>Test bug 1979050</title>
<script>
Object.prototype.imports = {
  "./module_simpleExport.mjs""./scope1/module_simpleExport.mjs",
};
Object.prototype.scopes = {
  "chrome://mochitests/content/chrome/dom/base/test/jsmodules/importmaps/scope1/"{
      "./scope1/module_simpleExport.mjs""/content/chrome/dom/base/test/jsmodules/importmaps/module_simpleExport.mjs"
  }
};
Object.prototype.integrity = {
  "./scope1/scope2/module_simpleExport.mjs""sha384-oqVuAfXRKap7fdgcCY5uykM6+R9GqQ8K/uxy9rx7HNQlGYl1kPzQho1wx4JwY8wC"
};

</script>
<script type="importmap">
{}
</script>

<script src="chrome://mochikit/content/tests/SimpleTest/SimpleTest.js"></script>

<script type="module" src="module_1979050.mjs"></script>
<script type="module" src="./scope1/module_1979050.mjs"></script>
<script type="module" src="./scope1/scope2/module_1979050.mjs"></script>
<script>
  var result, result2, result3;

  SimpleTest.waitForExplicitFinish();

  // eslint-disable-next-line no-unused-vars
  function testLoaded() {
    ok(result == 42'Check static imported value result: ' + result);
    ok(result2 == 84'Check static imported value result2: ' + result2);
    ok(result3 == 126'Check static imported value result3: ' + result3);

    import("./module_simpleExport.mjs").then((ns) => {
      ok(ns.x == 42'Check dynamic imported value result: ' + ns.x);
      return import("./scope1/module_1979050.mjs");
    }).then((ns) => {
      ok(ns.y == 84'Check dynamic imported value ns.y: ' + ns.y);
      return import("./scope1/scope2/module_1979050.mjs");
    }).then((ns) => {
      ok(ns.z == 126'Check dynamic imported value ns.z: ' + ns.z);
      SimpleTest.finish();
    });
  }
</script>
<body onload='testLoaded()'></body>

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

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

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