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


Quelle  test_bug895974.html   Sprache: HTML

 
 products/sources/formale Sprachen/C/Firefox/dom/base/test/test_bug895974.html


<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=895974
-->

<head>
  <meta charset="utf-8">
  <title>Test for Bug 895974</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
  <script type="application/javascript">

  /** Test for Bug 895974 **/
  SimpleTest.waitForExplicitFinish();

  addLoadEvent(function() {
  var frag = document.createDocumentFragment();
  var span = document.createElement("span");
  var div = document.createElement("div");
  var text = document.createTextNode("help");
  frag.appendChild(document.createTextNode("fail"));
  frag.appendChild(span);
  frag.appendChild(text);
  frag.appendChild(div);
  frag.appendChild(document.createTextNode("fail"));

  is(text.nextElementSibling, div"nextElementSibling should work on text");
  is(text.previousElementSibling, span,
    "previousElementSibling should work on text");

  is(document.firstElementChild, document.documentElement,
     "firstElementChild should work on document");
  is(document.lastElementChild, document.documentElement,
     "lastElementChild should work on document");
  is(document.children.length, 1, "Document has one element kid");
  is(document.children[0], document.documentElement,
     "Document only element child is ");

  is(frag.firstElementChild, span,
     "firstElementChild should work on document fragment");
  is(frag.lastElementChild, div,
     "lastElementChild should work on document fragment");
  is(frag.children.length, 2, "Document fragment has two element kids");
  is(frag.children[0], span"Document fragment first element child is span");
  is(frag.children[1], div"Document fragment second element child is div");

  is(document.documentElement.firstElementChild, document.head,
     "firstElementChild should work on element");
  is(document.documentElement.lastElementChild, document.body,
     "lastElementChild should work on element");
  is(document.documentElement.children.length, 2, " has two element kids");
  is(document.documentElement.children[0], document.head,
     " first element child is head");
  is(document.documentElement.children[1], document.body,
     " second element child is body");
  SimpleTest.finish();
  });
  </script>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=895974">Mozilla Bug 895974</a>
<p id="display"></p>
<div id="content" style="display: none">

</div>
<pre id="test">
</pre>
</body>
</html>

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

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






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge