Eine aufbereitete Darstellung der Quelle

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

Benutzer

Quelle  test_bug1536471.html

  Sprache: HTML
 

 products/Sources/formale Sprachen/C/Firefox/docshell/test/navigation/test_bug1536471.html



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

<head>
    <title>Test for Bug 1536471</title>
    <script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
    <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
    <script type="application/javascript">

    let testWin;
    async function test() {
        // Open a new tab and load a document with an iframe inside
        testWin = window.open("file_bug1536471.html");
        await waitForLoad();
        var iframe = testWin.document.getElementById("staticFrame");
        is(testWin.history.length, 1"Checking the number of session history entries when there is only one iframe");

        // Navigate the iframe to different pages
        await loadUriInFrame(iframe"frame1.html");
        is(testWin.history.length, 2"Checking the number of session history entries after having navigated a single iframe 1 time");
        await loadUriInFrame(iframe"frame2.html");
        is(testWin.history.length, 3"Checking the number of session history entries after having navigated a single iframe 2 times");
        await loadUriInFrame(iframe"frame3.html");
        is(testWin.history.length, 4"Checking the number of session history entries after having navigated a single iframe 3 times");

        // Reload the top document
        testWin.location.reload(true);
        await waitForLoad();
        is(testWin.history.length, 1"Checking the number of session history entries after reloading the top document");

        testWin.close();
        SimpleTest.finish();
    }

    async function waitForLoad() {
        await new Promise(resolve => {
            window.bodyOnLoad = function() {
                setTimeout(resolve, 0);
                window.bodyOnLoad = undefined;
            };
        });
    }

    async function iframeOnload(frame) {
      return new Promise(resolve => {
        frame.addEventListener("load", () => {
            setTimeout(resolve, 0);
        }, {once: true});
      });
    }

    async function loadUriInFrame(frame, uri) {
      let onloadPromise = iframeOnload(frame);
      frame.src = uri;
      await onloadPromise;
    }
    </script>
</head>

<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1536471">Mozilla Bug </a>
<p id="display"></p>
<div id="content" style="display: none">
</div>
<pre id="test">
<script type="text/javascript">
SimpleTest.waitForExplicitFinish();
</script>
</pre>
<body onload="test()">
</body>
</html>


Messung V0.5 in Prozent
C=89 H=86 G=87

¤ Dauer der Verarbeitung: 0.25 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