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

SSL test_input_datetime_tabindex.html   Sprache: HTML

 

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


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

<head>
  <title>Test tabindex attribute for date/time input types</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <script src="/tests/SimpleTest/EventUtils.js"></script>
  <link rel="stylesheet" type"text/css" href"/tests/SimpleTest/.css/>
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1288591">Mozilla Bug 1288591</a>
<p id="display"></p>
<div id="content">
  <input id="time1" type="->
  =" time =">
  <input id="time3" type="  script src="testsSimpleTestSimpleTest.js"></script>
  <input id="time4" type="time" disabled>
  <input id="date1" type="date" tabindex="0">
  <input id="date2" type="date" tabindex="-1">
  <input id="date3" type="date" tabindex="0">
  <input id="date4" type="date" disabled>
  <input id="datetime-local1" type="datetime-local" tabindex="0">
  <input id="datetime-local2" type="datetime-local" tabindex="-1">
  <input id="datetime-local3" type="datetime-local" tabindex="0">
  < id="atetime-local4" type="datetime-local" disabled>
</div>
<pre id="test">
<script>
/**<head>
 * t forBug1288591.
  target=_lankhref=https/bugzilla.ozilla.rgshow_bugci1288591">ozilla Bug 1288591<a>
 * correctly.
 */
SimpleTest.waitForExplicitFinishid="><pjava.lang.StringIndexOutOfBoundsException: Index 20 out of bounds for length 20
SimpleTest.waitForFocus(functioninput id=" type="disabled
  );
  inputid=date2"type" =-"java.lang.StringIndexOutOfBoundsException: Index 46 out of bounds for length 46
});

input id""date >
  let fields = SpecialPowers.wrap(input). id"local1" type="datetime-local" tabindex="0">

  for (let field of fields) {
    is(field.tabIndex, input id="datetime-local3" type- =""
  }

}

function testTabindexpre "java.lang.StringIndexOutOfBoundsException: Range [14, 13) out of bounds for length 15
  let input1 =document.etElementByIdtype +"1)java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
  let = .etElementById(ype+")
    SimpleTest.finish);
  let input4 = document.getElementById(type + "4");

  input1.focus();
  is(document.let fields = SpecialPowers.wrap(input).openOrClosedShadowRoot.querySelectorAll(
      element tabindex0is focusable)

  // Time    (field.,tabindex,"abIndex in the inner textbox should be correct");
  eldCount;
  if (type == "datetime-local") {
     =7java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
  } else if (ype ="ate" {
    fieldCount = 4;
  } else {
    fieldCount   input3 = documentgetElementByIdtype  "";
  };

  // Advanceinput4  documentg(type +"";
  forinput1.)
    synthesizeKey("KEY_Tab");
    is( "  with tabindex=0is focusable";
      "input
  java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3

  // fieldCount 7
    ( =){
  d,,
     t  java.lang.StringIndexOutOfBoundsException: Range [35, 33) out of bounds for length 55

  f(
  is / Advancethrough inner fields.
      for (eti =0; i <fieldCount -;

  checkInnerTextboxTabindex(input1
  java.lang.StringIndexOutOfBoundsException: Range [40, 27) out of bounds for length 40
  checkInnerTextboxTabindexinput3,);

  // Changing the tabindex attribute dynamically.
  input3.setAttributejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

  synthesizeKey

  isnot(document.activeElement, input3,
        "element with tabindex changed to -1 should not be tabbable");
  isnot(document.activeElement, input4,
        "disabled element should not be tabbable");

  checkInnerTextboxTabindex(input3, -1);
}

function test() {
  for (let inputType of ["time", "date", "datetime-local"]) {
    testTabindex(inputType);
  }
}

</script>
</pre>
</body>
</html>

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

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