Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  test_bug369950.html

  Sprache: HTML
 

 products/Sources/formale Sprachen/C/Firefox/layout/base/tests/test_bug369950.html


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

<head>
  <title>Test for Bug 369950</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=369950">Mozilla Bug 369950</a>
<p id="display">
  <iframe id="i" src="bug369950-subframe.xml" width="200" height="100"></iframe>
</p>
<div id="content" style="display: none">
  
</div>
<pre id="test">
<script type="application/javascript">

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

addLoadEvent(function() {
  // Can't just run our code here, because we might not have painting
  // unsuppressed yet.  Do it async.
  SimpleTest.executeSoon(doTheTest);
});

function doTheTest() {
  // do a layout flush
  var rect = $("i").getBoundingClientRect();
  var rect2 = $("i").contentDocument.documentElement.getBoundingClientRect();

  // And do the rest of it later
  SimpleTest.executeSoon(reallyDoTheTest);
}

function reallyDoTheTest() {
  var rect = $("i").getBoundingClientRect();
  var rect2 = $("i").contentDocument.documentElement.getBoundingClientRect();

  // We want coords relative to the iframe, so subtract off rect2.left/top.
  // 7px is a guess to get us from the bottom of the iframe into the scrollbar
  // groove for the horizontal scrollbar on the bottom.
  synthesizeMouse($("i").contentDocument.documentElement,
                  -rect2.left + rect.width / 2,  rect.height - rect2.top - 7,
                  {}, $("i").contentWindow);
  // Scroll is async, so give it time
  SimpleTest.executeSoon(checkScroll);
};

function checkScroll() {
  // do a layout flush
  var rect = $("i").getBoundingClientRect();
  // And do the rest of it later
  SimpleTest.executeSoon(reallyCheckScroll);
}

function reallyCheckScroll() {
  var rect = $("i").getBoundingClientRect();
  var rect2 = $("i").contentDocument.documentElement.getBoundingClientRect();
  isnot($("i").contentWindow.scrollX, 0"Clicking scrollbar should scroll");

  // Not doing things below here, since avoiding the scroll arrows
  // cross-platform is a huge pain.
  SimpleTest.finish();
  return;

  // 8px horizontal offset is a guess to get us into the scr
  synthesizeMouse($("i").contentDocument.documentElement, -rect2.left + 8,
                  rect.height - rect2.top - 7, {}, $("i").contentWindow);
  // Scroll is async, so give it time
  SimpleTest.executeSoon(finishUp);
}

function finishUp() {
  is($("i").contentWindow.scrollX, 0"Clicking scrollbar should scroll back");
  SimpleTest.finish();
};




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

Messung V0.5 in Prozent
C=89 H=97 G=93

¤ Dauer der Verarbeitung: 0.18 Sekunden  (vorverarbeitet am  2026-06-04) ¤

*© 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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik