Revision 4c581fe88602762273f350d08ccc7371bd1c2c62 authored by Jake Archibald on 10 April 2018, 07:01:54 UTC, committed by Jake Archibald on 10 April 2018, 13:20:08 UTC
1 parent 9e34bb1
Raw File
2d.fillStyle.parse.rgba-num-1.html
<!DOCTYPE html>
<!-- DO NOT EDIT! This test has been generated by tools/gentest.py. -->
<title>OffscreenCanvas test: 2d.fillStyle.parse.rgba-num-1</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/common/canvas-tests.js"></script>

<h1>2d.fillStyle.parse.rgba-num-1</h1>
<p class="desc"></p>

<p class="notes">
<script>
var t = async_test("");
t.step(function() {

var offscreenCanvas = new OffscreenCanvas(100, 50);
var ctx = offscreenCanvas.getContext('2d');


ctx.fillStyle = '#f00';
ctx.fillStyle = 'rgba(  0  ,  255  ,  0  ,  .499  )';
ctx.fillRect(0, 0, 100, 50);
_assertPixel(offscreenCanvas, 50,25, 0,255,0,127, "50,25", "0,255,0,127");

t.done();

});
</script>
back to top