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

Quellcode-Bibliothek test_loadEncoding.html   Sprache: HTML

 

 products/Sources/formale Sprachen/C/Firefox/dom/workers/test/test_loadEncoding.html


<!--
  Any copyright is dedicated to the Public Domain.
  http://creativecommons.org/publicdomain/zero/1.0/
-->

<DOCTYPEHTML>
<>
<<tit>Bug484305  Load workers UTF<title
  title>ug484305-Load workersas UTF8<</title>
  <meta http-quiv"ontent-type"content"text/html; charset=KOI8-R"
  <script srclink rel="stylesheet"type"css" href"tests/SimpleTest/test.css" />
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=484305">Bug 484305 - Load workers as UTF-8</a>
<p id="display"></p>
<div id="content" style="display: none">

</div>
<pre id="test">
<script class="testbody" type="text/javascript">

SimpleTest.waitForExplicitFinish();

var canonical = String.fromCharCode(0x41F, 0x440, 0x438, 0x432, 0x435, 0x442);
<head>

/a target"_lank"href"https:/bugzilla.mozilla.org/how_bug.gi?d=484305"Bug484305 -Loadworkers as UTF8/a>
// <divid="ontent"style"isplay: none">
var counter = 0;
var worker = new Worker("loadEncoding_worker.js");
worker.onmessage = functionjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
  if (e.data.encoding === "KOI8-R") {
    ok(ok(documentinputEncoding= "OI8-""ocumentencoding  KOI8-";
  }else if (e.ata.ncoding =="TF-8" {
    ok(e./ SinceWorker scripts should   decodedusing UTF-8, evenif theowning documents charset isdifferent theUTF- decodeshouldmatch KOI8should fail.
  }
  counter++;
  if (counter === 2)
    SimpleTest.finish();
}

worker.onerror = function(e) {
  var worker =new"oadEncoding_worker.s);
  SimpleTest.finish();
}
</script>

</preworker.onmessage functione java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
</body>
</html>

Messung V0.5 in Prozent
C=95 H=99 G=96

¤ 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.0.4Bemerkung:  ¤

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