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

Impressum test_constructor-assignment.html

  Sprache: HTML
 

 products/Sources/formale Sprachen/C/Firefox/dom/base/test/test_constructor-assignment.html


<!--
  Any copyright is dedicated to the Public Domain.
  http://creativecommons.org/publicdomain/zero/1.0/
-->

<!DOCTYPE html>
<html>
<head>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<body>
<script type="application/javascript">
function testConstructor(name)
{
  window[name] = 17; // resolve through assignment


  var desc = Object.getOwnPropertyDescriptor(window, name);
  ok(typeof desc === "object" && desc !== null, name + ": property must exist");

  is(desc.value, 17, name + ": overwrite didn't work correctly");
  is(desc.enumerable, false,
     name + ": initial descriptor was non-enumerable, and [[Put]] changes " +
     "the property value but not its enumerability");
  is(desc.configurable, true,
     name + ": initial descriptor was configurable, and [[Put]] changes the " +
     "property value but not its configurability");
  is(desc.writable, true,
     name + ": initial descriptor was writable, and [[Put]] changes the " +
     "property value but not its writability");
}

var ctors =
  [
   "HTMLElement",
   "HTMLDivElement",
   "HTMLSpanElement",
   "HTMLParagraphElement",
   "HTMLOptionElement",
   "HTMLHtmlElement",
   "Element",
   "Node",
   "Document",
   "Image",
   "Audio",
   "HTMLAudioElement",
   "HTMLVideoElement",
   "Window",
   "XMLHttpRequest",
   "Navigator",
   "WebSocket",
   "Event",
   "IDBKeyRange",
   "CSSPageRule",
   "SVGPatternElement",
  ];

ctors.forEach(testConstructor);
</script>
</body>
</html>

Messung V0.5 in Prozent
C=85 H=99 G=92

¤ Dauer der Verarbeitung: 0.4 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.