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(); variframe = 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");
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 ist noch experimentell.