- name: misc.mozilla.353981 DISABLED: duplicates some other test? mozilla: 353981 code: | ctx.fillStyle = '#0f0'; ctx.fillRect(0, 0, 100, 50); ctx.fillStyle = '#f00'; ctx.globalAlpha = 1; ctx.beginPath(); ctx.fill(); ctx.globalAlpha = 0; ctx.rect(0, 0, 100, 50); ctx.fill(); @assert pixel 50,25 == 0,255,0,255; expected: green - name: misc.opera.transparent DISABLED: Not reliable enough code: | // Adding bright yellow onto transparent probably(?) shouldn't give anything // other than transparent bright yellow, else it gives confusing output when // you're trying to fade to a certain colour ctx.clearRect(0, 0, 100, 50); ctx.fillStyle = '#ff0'; ctx.globalAlpha = 0.02; for (var i = 0; i < 1024; ++i) ctx.fillRect(0, 0, 100, 50); @assert pixel 50,25 ==~ 255,255,0,240 +/- 20; // lots of tolerance in A, less tolerance in R/G - name: misc.opera.moveTo DISABLED: dupe of 2d.path.moveTo.multiple code: | ctx.fillStyle = '#f00'; ctx.fillRect(0, 0, 100, 50); ctx.moveTo(0, 25); ctx.moveTo(1, 25); ctx.moveTo(0, 25); ctx.lineTo(100, 25); ctx.lineWidth = 100; ctx.strokeStyle = '#0f0'; ctx.stroke(); @assert pixel 50,25 == 0,255,0,255; expected: green - name: misc.opera.onload DISABLED: Not reliable enough code: | var img = new Image(); deferTest(); img.src = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAAAAAA6fptVAAAACklEQVQI12P4DwABAQEAG7buVgAAAABJRU5ErkJggg=='; // ("load" shouldn't be called until we've left this function, else the handlers added below will be missed) var calledOnload = false; img.onload = function () { calledOnload = true; }; // TODO: this might be a bit unreliable if the browser takes ages to load the image setTimeout(wrapFunction(function() { @assert calledOnload; }), 2000);