Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/canvas/test/   (Sun/Oracle ©)  Datei vom 10.2.2025 mit Größe 759 B image not shown  

Quelle  test_toBlob_zero_dimension.html   Sprache: HTML

 
 products/Sources/formale Sprachen/C/Firefox/dom/canvas/test/test_toBlob_zero_dimension.html


<!DOCTYPE HTML>
<title>Canvas test: toBlob</title>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" href="/tests/SimpleTest/test.css">
<body>
<canvas id="c" width="100" height="0"></canvas>
<script>

function testblob(blob) {
  is(blob, null, "Null blob expected");
}

function test1(canvas)
{
  canvas.toBlob(function(blob) {
    testblob(blob);
    test2(canvas);
  }, "image/png");
}

function test2(canvas)
{
  canvas.width = 0;
  canvas.height = 100;
  canvas.toBlob(function(blob) {
    testblob(blob);
    SimpleTest.finish();
  }, "image/png");
}

SimpleTest.waitForExplicitFinish();

addLoadEvent(function () {

var canvas = document.getElementById('c');
var ctx = canvas.getContext('2d');
test1(canvas);

});
</script>

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

¤ Dauer der Verarbeitung: 0.10 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.