Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/testing/web-platform/tests/fetch/range/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  data.any.js   Sprache: JAVA

 
// META: script=/common/utils.js

promise_test(async () => {
  return fetch("data:text/plain;charset=US-ASCII,paddingHello%2C%20World%21padding", {
    "method""GET",
    "Range""bytes=13-26"
  }).then(function(resp) {
    assert_equals(resp.status, 200, "HTTP status is 200");
    assert_equals(resp.type, "basic""response type is basic");
    assert_equals(resp.headers.get("Content-Type"), "text/plain;charset=US-ASCII""Content-Type is " + resp.headers.get("Content-Type"));
    return resp.text();
  }).then(function(text) {
    assert_equals(text, 'paddingHello, World!padding'"Response's body ignores range");
  });
}, "data: URL and Range header");

promise_test(async () => {
  return fetch("data:text/plain;charset=US-ASCII,paddingHello%2C%20paddingWorld%21padding", {
    "method""GET",
    "Range""bytes=7-14,21-27"
  }).then(function(resp) {
    assert_equals(resp.status, 200, "HTTP status is 200");
    assert_equals(resp.type, "basic""response type is basic");
    assert_equals(resp.headers.get("Content-Type"), "text/plain;charset=US-ASCII""Content-Type is " + resp.headers.get("Content-Type"));
    return resp.text();
  }).then(function(text) {
    assert_equals(text, 'paddingHello, paddingWorld!padding'"Response's body ignores range");
  });
}, "data: URL and Range header with multiple ranges");

Messung V0.5
C=92 H=94 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.