Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Firefox/dom/base/test/unit/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 614 B image not shown  

Quelle  test_xhr_standalone.js   Sprache: JAVA

 
/* Any copyright is dedicated to the Public Domain.
 * http://creativecommons.org/publicdomain/zero/1.0/
 */


// Test setting .responseType and .withCredentials is allowed
// in non-window non-Worker context

function run_test() {
  Services.prefs.setBoolPref(
    "network.fetch.systemDefaultsToOmittingCredentials",
    false
  );
  var xhr = new XMLHttpRequest();
  xhr.open("GET""data:,"false);
  var exceptionThrown = false;
  try {
    xhr.responseType = "";
    xhr.withCredentials = false;
  } catch (e) {
    console.error(e);
    exceptionThrown = true;
  }
  Assert.equal(false, exceptionThrown);
}

Messung V0.5
C=91 H=95 G=92

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© 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.