Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  test_plugin_freezing.html

  Sprache: HTML
 

 products/Sources/formale Sprachen/C/Firefox/dom/base/test/test_plugin_freezing.html


<!DOCTYPE HTML>
<html>
<head>
  <title>Test for plugin freezing and thawing</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<div id="content" style="display: none">
</div>
<embed id='e1' type='application/x-test'></embed>
<script>
var e1 = document.getElementById('e1');
var w;

var testIndex = 0;
var tests;

window.addEventListener("unload", function() {
  e1.stopWatchingInstanceCount();
});

function nextTest() {
  if (testIndex == tests.length) {
    if (f) {
      f.remove();
    }
    SimpleTest.waitForFocus(function() {
      SimpleTest.finish();
    });
    return;
  }

  var test = tests[testIndex];
  ++testIndex;
  test();
}

function waitForInstanceCount(n) {
  if (e1.getInstanceCount() == n) {
    ok(true, "reached instance count " + n);
    nextTest();
    return;
  }
  setTimeout(function() { waitForInstanceCount(n); }, 0);
}

tests = [
  function() { waitForInstanceCount(1); },
  function() { f.src = "about:blank";
               waitForInstanceCount(0); },
];

try {
  e1.startWatchingInstanceCount();
  // Use an iframe instead of window.open since top-level data: URI
  // navigations are blocked for content-initiated requests.
  var f = document.createElement("iframe");
  f.src = "data:text/html,<embed id='e2' type='application/x-test'></embed>";
  document.body.appendChild(f);
  f.onload = nextTest;
  SimpleTest.waitForExplicitFinish();
} catch (err) {
  todo(false, "Instances already being watched?");
}

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

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

¤ Dauer der Verarbeitung: 0.29 Sekunden  (vorverarbeitet am  2026-08-27) ¤

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

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....

Besucherstatistik

Besucherstatistik

Statistik
#Sources=476070
#Domains=661743