Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/base/test/   (Firefox Browser Version 153.0.1©)  Datei vom 27.6.2026 mit Größe 960 B image not shown  

Quelle  browser_bug1011748.js

  Sprache: JAVA
 

const gHttpTestRoot = "http://example.com/browser/dom/base/test/";

add_task(async function () {
  var statusTexts = [];
  var xhr = new XMLHttpRequest();
  var observer = {
    observe(aSubject, aTopic, aData) {
      try {
        var channel = aSubject.QueryInterface(Ci.nsIHttpChannel);
        channel.getResponseHeader("Location");
      } catch (e) {
        return;
      }
      statusTexts.push(xhr.statusText);
    },
  };

  Services.obs.addObserver(observer, "http-on-examine-response");
  await new Promise(resolve => {
    xhr.addEventListener("load"function () {
      statusTexts.push(this.statusText);
      is(statusTexts[0], """Empty statusText value for HTTP 302");
      is(statusTexts[1], "OK""OK statusText value for the redirect.");
      resolve();
    });
    xhr.open("GET", gHttpTestRoot + "file_bug1011748_redirect.sjs"true);
    xhr.send();
  });

  Services.obs.removeObserver(observer, "http-on-examine-response");
});

Messung V0.5 in Prozent
C=98 H=100 G=98

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