/** Test for Bug 587106 **/ var ctx=document.getElementById('c').getContext('2d');
for (var i = 0; i < 100; ++i) {
// Skip things that will give different alpha values depending on weird
// rounding stuff. var tentativeAlpha = i / 100 * 255;
if (Math.abs(tentativeAlpha.toFixed(1) - tentativeAlpha.toFixed(0)) == 0.5) {
// Skip this one, please!
continue;
}
ctx.strokeStyle = 'rgba(0, 0, 0, ' + (i/100) + ')';
is(ctx.strokeStyle, 'rgba(0, 0, 0, ' + (i/100) + ')', 'strokeStyle should match for opacity='+(i/100));
}
</script>
</pre>
</body>
</html>
Messung V0.5
¤ Dauer der Verarbeitung: 0.10 Sekunden
(vorverarbeitet)
¤
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.