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

Quelle  test_radio_in_label.html   Sprache: HTML

 
 products/Sources/formale Sprachen/C/Firefox/dom/html/test/forms/test_radio_in_label.html


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

<head>
  <title>Test for Bug 229925</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <script src="/tests/SimpleTest/EventUtils.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=229925">Mozilla Bug 229925</a>
<p id="display"></p>
<form>
  <label>
    <span id="s1">LABEL</span>
    <input type="radio" name="rdo" value="1" id="r1" onmousedown="document.body.appendChild(document.createTextNode('down'));">
    <input type="radio" name="rdo" value="2" id="r2" checked="checked">
  </label>
</form>
<script class="testbody" type="text/javascript">

/** Test for Bug 229925 **/
SimpleTest.waitForExplicitFinish();
var r1 = document.getElementById("r1");
var r2 = document.getElementById("r2");
var s1 = document.getElementById("s1");
startTest();
function startTest() {
  r1.click();
  ok(r1.checked,
     "The first radio input element should be checked by clicking the element");
  r2.click();
  ok(r2.checked,
     "The second radio input element should be checked by clicking the element");
  s1.click();
  ok(r1.checked,
     "The first radio input element should be checked by clicking other element");

  r1.focus();
  synthesizeKey("KEY_ArrowLeft");
  ok(r2.checked,
     "The second radio input element should be checked by key");
  synthesizeKey("KEY_ArrowLeft");
  ok(r1.checked,
     "The first radio input element should be checked by key");
  SimpleTest.finish();
}
</script>
</pre>
</body>
</html>

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

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