Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/third_party/rust/profiling/src/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 927 B image not shown  

SSL test_unEscapeURIForUI.js   Sprache: unbekannt

 
// Tests for nsITextToSubURI.unEscapeURIForUI
function run_test() {
  // Tests whether incomplete multibyte sequences throw.
  const tests = [
    {
      input: "http://example.com/?p=%E3%80%82",
      //TODO: should be the same as input, bug 1248812
      expected: "http://example.com/?p=%u3002",
    },
    {
      input: "http://example.com/?name=%E3%80%82",
      dontEscape: true,
      expected: "http://example.com/?name=\u3002",
    },
  ];

  for (const t of tests) {
    Assert.equal(
      Services.textToSubURI.unEscapeURIForUI(t.input, t.dontEscape),
      t.expected
    );
  }
}

Messung V0.5
C=93 H=91 G=91

[ Verzeichnis aufwärts0.17unsichere Verbindung  Übersetzung europäischer Sprachen durch Browser  ]