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


Impressum resource_timing_iframe.html   Sprache: HTML

 
 products/sources/formale Sprachen/C/Firefox/dom/tests/mochitest/general/resource_timing_iframe.html


<!--
  Any copyright is dedicated to the Public Domain.
  http://creativecommons.org/publicdomain/zero/1.0/
-->


<!--
  This file is a sub-test file for the Resource Timing and Performance Timeline
  APIs.
  These tests are focused on the iframe corner case.
  The first step is to check that the image from this document was added as
  an entry to this window.performance object.
  The second step is to check that this iframe was not added as an entry to its
  own window.performance object.
  As a final step, we do a double checking: no ifrmes were added as entries
  to this window.performance object.
-->


<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  <title>Test for Bug 822480 -  Add in the Resource Timing API</title>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
</head>
<script>
function doTest() {
  window.parent.ok(!!window.performance.getEntriesByName(
    "http://mochi.test:8888/tests/image/test/mochitest/damon.jpg").length,
    "http://mochi.test:8888/tests/image/test/mochitest/damon.jpg should be a valid entry name");
  let entries = window.performance.getEntriesByName(
    "http://mochi.test:8888/tests/dom/tests/mochitest/general/resource_timing_iframe.html");
  window.parent.is(entries.length, 1, "This iframe should have only 1 entry with its URL");
  window.parent.is(entries[0].type, "navigate""This iframe should have its navigation entry");

  // Check that there are no iframes added as entries
  var resources = window.performance.getEntriesByType("resource");
  for (var i = 0 ; i < resources.length; i++) {
    var entry = resources[i];
    if (entry.initiatorType === "iframe") {
      ok(false, "unexpected iframe " + entry.name);
    }
  }

  window.parent.iframeTestsCompleted();
}
</script>
<body onLoad="doTest()">
  <img src="http://mochi.test:8888/tests/image/test/mochitest/damon.jpg"/>
</body>
</html>

Messung V0.5
C=79 H=99 G=89

¤ Dauer der Verarbeitung: 0.14 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






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 und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Produkte
     Quellcodebibliothek

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Monitoring

Montastic status badge