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


Quelle  browser_partial.js   Sprache: JAVA

 
async function test() {
  waitForExplicitFinish();
  const target =
    "https://example.com/browser/dom/media/test/browser/file_empty_page.html";

  info("Loading download page...");

  let tab = BrowserTestUtils.addTab(gBrowser, target);

  registerCleanupFunction(function () {
    gBrowser.removeTab(tab);
    window.restore();
  });

  gBrowser.selectedTab = tab;
  BrowserTestUtils.browserLoaded(tab.linkedBrowser, false, target).then(
    async () => {
      info("Page loaded.");
      let allDownloads = await Downloads.getList(Downloads.ALL);
      let started = new Promise(resolve => {
        // With no download modal, the download will begin on its own, so we need
        // to wait to be notified by the downloads list when that happens.
        let downloadView = {
          onDownloadAdded(download) {
            ok(true"Download was started.");
            download.cancel();
            allDownloads.removeView(this);
            allDownloads.removeFinished();
            resolve();
          },
        };
        allDownloads.addView(downloadView);
      });

      let revoked = SpecialPowers.spawn(
        tab.linkedBrowser,
        [],
        () =>
          new Promise(resolve => {
            let link = content.document.createElement("a");
            link.href = "force_octet_stream.mp4";
            content.document.body.appendChild(link);
            info("Clicking HTMLAnchorElement...");
            link.click();
            info("Clicked HTMLAnchorElement.");
            resolve();
          })
      );

      info("Waiting for async activities...");
      await Promise.all([revoked, started]);
      ok(true"Exiting test.");
      finish();
    }
  );
}

Messung V0.5
C=88 H=99 G=93

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