Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/file/ipc/tests/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 1 kB image not shown  

Quelle  test_ipcBlob_emptyMultiplex.html   Sprache: HTML

 
 products/Sources/formale Sprachen/C/Firefox/dom/file/ipc/tests/test_ipcBlob_emptyMultiplex.html


<!DOCTYPE HTML>
<html>
<head>
  <title>Test an empty IPCBlob together with other parts</title>
  <script src="/tests/SimpleTest/SimpleTest.js"></script>
  <link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css" />
</head>
<body>
<script type="text/javascript">

function checkContent(msg, content) {
  return new Promise(resolve => {
    let fr = new FileReader();
    fr.readAsText(new Blob(content));
    fr.onloadend = () => {
      is(fr.result, "Hello world!""The content matches: " + msg);
      resolve();
    };
  });
}

SimpleTest.waitForExplicitFinish();

let url = SimpleTest.getTestFileURL("script_file.js");

let script = SpecialPowers.loadChromeScript(url);
script.addMessageListener("emptyfile.opened", message => {
  checkContent("middle", ["Hello ", message.file, "world!"]).
  then(() => checkContent("begin", [message.file, "Hello world!"])).
  then(() => checkContent("end", ["Hello world!", message.file])).
  then(() => checkContent("random", [message.file, message.file, "Hello world!", message.file])).
  then(() => checkContent("random 2", [message.file, message.file, "Hello ",
                                       message.file, "world", message.file,
                                       message.file, "!", message.file, "",
                                       message.file, message.file])).
  then(SimpleTest.finish);
});

script.sendAsyncMessage("emptyfile.open");

</script>
</pre>
</body>
</html>

Messung V0.5
C=89 H=100 G=94

¤ Dauer der Verarbeitung: 0.17 Sekunden  (vorverarbeitet)  ¤

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