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

Quelle  test_bug571352.html   Sprache: HTML

 
 products/Sources/formale Sprachen/C/Firefox/layout/forms/test/test_bug571352.html


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

<head>
  <title>Test for Bug 571352</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=571352">Mozilla Bug 571352</a>
<p id="display"><select multiple style="width:300px/*to avoid any overlay scrollbar messing with our mouse clicks*/"><option>0<option>1<option>2<option>3<option>4<option>5</select></p>
<div id="content" style="display: none">
  
</div>
<pre id="test">
<script type="application/javascript">

/** Test for Bug 571352 **/

SimpleTest.waitForExplicitFinish();
SimpleTest.waitForFocus(function test() {
  function focusList() {
    $('display').firstChild.focus();
  }
  function option(index) {
    return $('display').firstChild.childNodes[index];
  }
  function remove(index) {
   var sel = $('display').firstChild;
   sel.removeChild(sel.childNodes[index]);
   document.body.clientHeight;
  }
  function up() { synthesizeKey("KEY_ArrowUp"); }
  function shiftUp() { synthesizeKey("KEY_ArrowUp", {shiftKey:true}); }
  function down() { synthesizeKey("KEY_ArrowDown"); }
  function shiftDown() { synthesizeKey("KEY_ArrowDown", {shiftKey:true}); }
  function mouseEvent(index,event) {
    synthesizeMouse(option(index), 5, 5, event);
  }

  const click = {};
  const shiftClick = {shiftKey:true};
  focusList();
  mouseEvent(0,click)
  is(document.activeElement,$('display').firstChild,"





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 ist noch experimentell.