Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  object.html

  Sprache: HTML
 

 products/Sources/formale Sprachen/C/Firefox/testing/web-platform/tests/element-timing/object.html


<!DOCTYPE HTML>
<head>
<meta charset=utf-8>
<title>Element Timing: observe an object containing an image</title>
<style>
body {
  margin: 20px;
}
</style>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="resources/element-timing-helpers.js"></script>
<script>
  async_test(function (t) {
    let beforeRender;
    let object;
    assert_implements(window.PerformanceElementTiming, "PerformanceElementTiming is not implemented");
    const observer = new PerformanceObserver(
      t.step_func_done(function(entryList) {
        assert_equals(entryList.getEntries().length, 1);
        const entry = entryList.getEntries()[0];
        const pathname = window.location.origin + '/images/green-100x50.png';
        checkElement(entry, pathname, 'my_object''rectangle', beforeRender, object);
        checkRect(entry, [201202070]);
        checkNaturalSize(entry, 10050);
      })
    );
    observer.observe({entryTypes: ['element']});
    // We add the object during onload to be sure that the observer is
    // registered in time for it to observe the element timing.
    window.onload = () => {
      // Add object of width equal to 100 and height equal to 50.
      object = document.createElement('object');
      object.type = 'image/png';
      object.id = 'rectangle';
      object.data = '/images/green-100x50.png';
      object.setAttribute('elementtiming''my_object');

      document.body.appendChild(object);
      beforeRender = performance.now();
    };
  }, 'Element with an object containing an image.');
</script>
</head>

Messung V0.5 in Prozent
C=87 H=96 G=91

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






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002