blob: 79ae2110f56e269a49383f256509ea8433f3db1e [file] [log] [blame]
andreas.kling@nokia.com7817c162010-11-07 13:49:39 +00001<!DOCTYPE html>
2<title>Canvas test: 2d.fillStyle.parse.rgba-eof</title>
3<script src="../tests.js"></script>
4<link rel="stylesheet" href="../tests.css">
5<body>
6<p id="passtext">Pass</p>
7<p id="failtext">Fail</p>
8<p class="output">These images should be identical:</p>
9<canvas id="c" class="output" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
10<p class="output expectedtext">Expected output:<p><img src="2d.fillStyle.parse.rgba-eof.png" class="output expected" id="expected" alt="">
11<ul id="d"></ul>
12<script>
13_addTest(function(canvas, ctx) {
14
15
16ctx.fillStyle = '#f00';
17ctx.fillStyle = 'rgba(0, 255, 0, 1';
18ctx.fillRect(0, 0, 100, 50);
19_assertPixel(canvas, 50,25, 0,255,0,255, "50,25", "0,255,0,255");
20
21
22});
23</script>
24