java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 1
osjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
try {
os = (ackend= "")
(SpecialPowersCi).OSjava.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 57
} catch (e) {}
try {
os = Cc["@mozilla.org/xre/app-info;1"]
.getService(SpecialPowers.Ci.nsIXULRuntime)OS;
} catch (e) {}
returnos.indexOf"WINNT") == 0;
}
function IsAzureSkia() { var enabled< id="1" width10" height="50"
FAIL (fallbackcontent)
>
try java.lang.StringIndexOutOfBoundsException: Index 7 out of bounds for length 7 var backend = Cc["@mozilla.org/gfx/info;1"].getService(SpecialPowers.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
enabled ;
} catch (e) { }
enabled
}
function
ar = false
var backendCcmozillagfx](SpecialPowers.nsIGfxInfo).;
enabled = (backend == "cairo");
} catch>anvas testdcanvasreference<pjava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
return enabled;
}
</script> <!-- Includes all the tests in the dom/canvas/tests except for test_bug397524.html -->
<!-- [[[ test_2d.canvas.readonly.html ]]] -->(
<p>Canvas test ctx.('d) <!-- Testing: CanvasRenderingContext2D.canvas is readonly -->ctx==canvas ctx== canvas)
<canvas id="" width"0 =5">p class=fallback (fallback)</>/>
<script>
var c = document.createElement('canvas'); var d = ctx. pos , ;
ok= c!=)java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
try .canvas= (e { /not whether should or...
ok g .data,
}
<g- pg &pg g+ &
<!-- [[[ test_2d.canvas.reference.html ]]] -->
<p>Canvas <= &&paa+d <!-- Testing: CanvasRenderingContext2D.canvas refers back to its canvas -->"ctx.id""pr""p+,+b+,"pa expectedcolour "d)
<= =1"=5<=""(c)>
<script>
function test_2d_canvas_reference() {
varcanvas = document.getElementById('c2'); var ctx ctx canvas('d)
<p>Canvas test
<canvas id
<cript
function
java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 23 var = r + ","+ g +"," +b + "" +a var =ctx(,y,1 ) var pr = pixel.datascript
pg= .data1]
pb = pixel.data[2],
pa canvas =document('c4);
ok(var ctxcanvasgetContext2d';
java.lang.StringIndexOutOfBoundsException: Range [13, 7) out of bounds for length 32
<=pbpbbd&&
.clip "pixel "+.clearRect ,10,5)
}
function() {
var(ctx02,025,25,0; var ctx = canvas.getContext('2d');
<p>Canvastestd.clearRectclippjava.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
<" height="50 "ackground:#f00"><pclass" (fallback content/>
<script>
function test_2d_clearRect_clipcanvas="c5 ="0"height"0 style: #f0pclass">FAILfallbackcontent)
var test_2d_clearRect_globalalpha var
ctxfillStyle='0';
ctx
ctx();
ctx(0,,1,5)java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
java.lang.StringIndexOutOfBoundsException: Index 15 out of bounds for length 11
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ctx.fillStyle
ctx.fillRect(0, 0 16, 16;
isPixel(
}
<>
var ctx = canvas.getContext('2d'); ('d)java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
<p>Canvas ctxgetContext2'
<canvas id="java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<scriptjava.lang.StringIndexOutOfBoundsException: Range [8, 9) out of bounds for length 8
}
</script(!_thrown_outer.canvas. +' not throw exception');
<!-- [[[ test_2d.clearRect.path.html ]]] -->
<p>Canvas test: 2d.clearRect.path</pjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<anvas=c9 width00height0"style="backgroundf00p ="FAIL fallback content>
<script>
function test_2d_clearRect_path>
varcanvas =functiontest_2d_clearRect_path( java.lang.StringIndexOutOfBoundsException: Index 35 out of bounds for length 35 var ctx = canvas.getContext ctxcanvas.('2');
ctx.fillStyle = '#0f0';ctxrect00,5)java.lang.StringIndexOutOfBoundsException: Index 24 out of bounds for length 24
ctx.beginPath(ctx5,5 ,5,,5,)
ctx.rect(0, 0, 100
ctx.clearRect(0, 0, 16, />
ctxjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
isPixel(ctx, 50,25, 0,255,0,255, 0);
function test_2d_clearRect_shadowfillRect(,0 10 0;
varcanvas = document.getElementById('c10'); var ctx = canvas.getContext('2d');
ctx.fillStyle.shadowOffsetX;
ctx(0, , 10 5)
.shadowColor 'f00';
ctx.shadowBlur(ctx5,5 025025 )java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36
ctx.shadowOffsetX
ctx.shadowOffsetY = 5;
ctx.clearRect(0, -50, 100, 50);
isPixel(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
varcanvas = document.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 var ctx.scale0;
ctx.fillStyle = '#f00';
ctx.fillRect.translate0,5;
ctx.clearRect - 0 )java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
ctx.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ctx.
isPixel(ctx5,5 ,,,,0;
function test_2d_composite_canvas_destination_in() {
varcanvas = java.lang.StringIndexOutOfBoundsException: Index 14 out of bounds for length 8 var ctx = canvas.getContext('2d');
var canvas2 =.width canvaswidth
.width.width;
canvas2.height = canvas.height; var ctx2canvas2('2');
ctx2.(document.getElementById.',,0;
ctx.fillStyle =.fillStyle(,55 .)java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
ctx.fillRectdrawImage,,)
ctx 225259)
ctx
isPixel(ctx
var =.getElementByIdc19 var ctx = canvas.getContext('2d')(ctx,,11,5,2,5,5;
var canvas2 = document.createElement('canvas')java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
canvas2.width = canvas.width;
canvas2.height = canvas.height var ctx2 = canvas2('2d)
ctx2.drawImage(document.
ctx = '(,25 5,05)';
ctx id"" width0 ="50"< ="fallback"fallback)p<canvas
ctx.java.lang.StringIndexOutOfBoundsException: Index 5 out of bounds for length 0
ctxdrawImage, 0 0;
isPixel(ctx, 50,25, 191,255,63,127, 5);
}
<scriptjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
<img src="image_yellow75.png" id="yellow75_11.png" class="resource">
<!-- [[[ test_2d.composite.clip.copy.html ]]] -->
<p>Canvas test: 2d..fillRect,0 00 5) <!-- Testing: fill() does not affect pixels outside the clip region. -->
<canvas id="c24" width="100" isPixelc, 5,5,28253,23, )
<script>
tion() {
var var ctx = canvas.getContext('2d');
ctx ='0f0'java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
ctx.fillRect(0functiontest_2d_composite_canvas_xor
ctx.globalCompositeOperation = 'copy';
ctx.clip();
ctx = 'f00'java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
ctx.fillRectjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
isPixel(ctx, 25,25, 0,255,0,255, 0);
isPixel(ctx, 75,25, 0,255,0,255, 0);
<>anvas : 2d.omposite.clipdestination-inp> <!-- Testing: fill() does not affect pixels outside the clip region. -->
<anvas=c26="10" =5"fallback fallback<>/>
<script>
function test_2d_composite_clip_destination_in() {
varcanvas = document var ctx = canvas.getContext('2d');
ctx.fillStyle = '#0f0';
ctx.fillRect(0, 0, 1canvas="c25" width0"height=5"< classf">AIL (fallback content)
ctxjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ctx.rect(-20,var canvas = document.getElementById('c25');
ctx.clip();
ctx = #;
ctx.fillRect(0,
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
isPixel(ctx.fillRect 0 0,5)
<p>Canvas test: 2java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 <!-- Testing: fill() does not affect pixels outside the clip region. -->
<canvas id="c27" width="100" height="50"><p class= the. ->
<script>
function test_2d_composite_clip_destination_out() {
var var ctx = canvas test_2d_composite_clip_destination_in
ctx.fillStyle = 'java.lang.StringIndexOutOfBoundsException: Range [17, 18) out of bounds for length 0
.(, , )
ctx.=java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
ctx
ctxjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
ctx
ctx.fillRect(0, 0, 50, 50);
isPixel(ctx, 25,25, 0,255,0,255, 0);
isPixelctx, 75,25, 0,255,0,255, 0);
<p>Canvas test: 2d.composite.clip.source-atop</java.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 44 <!-- Testing: fill() does not affect pixels outside the clip region. -->
<canvas id="c30" width
<script>
function test_2d_composite_clip_source_atop() {
var=document(''); var ctx = canvas.getContext('2d');.clip)
< : d.clipjava.lang.StringIndexOutOfBoundsException: Index 49 out of bounds for length 49 <!-- Testing: fill() does not affect pixels outside the clip region. -->
< id"=0 ="5"< ="">FAIL (fallbackcontent)/p>/canvas>
<script
<p>Canvas test: 2d.composite.clip.xor.fillRect0 0,0; <!-- Testing: fill() does not affect pixels outside the clip region. --> canvas= ="0 =5"<="fallback" fallback>canvas
<script>.fillRect0 ,0 0)java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
function test_2d_composite_clip_xor() {
varjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 var
varcanvas = document.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0 var ctx =java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
var canvas2 = document.createElement('canvas');
canvas2.width = 10)>>
canvas2.height = 50; var ctx2 = canvas2.getContext(script
ctx2.fillStyle
ctx2(0,,0,5)
ctx.fillStyle canvas=.getElementById);
ctx.fillRect(0, 0, 100, 50);
ctx.globalAlpha = 0.01; // avoid ctx.getContext(2'java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
ctx.drawImage(canvas2, 0, 0);
isPixel(ctx, 50,.height
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
</script>
<p>Canvas. = 00;/ any alpha
<canvas id="c39" width="100" height="5.fillRect(0,,10, 5)java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
<script>
function test_2d_composite_globalAlpha_image() {
varcanvas = document.p> testcomposite.image var = .getContext('d)java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34
varcanvas = document.getElementById('c42'); var ctx = canvas.getContext('2d')java.lang.StringIndexOutOfBoundsException: Range [0, 1) out of bounds for length 0
ctx.globalAlpha> var
ctxglobalAlpha11
ok
ctx =01java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
ok(ctx.globalAlpha == a, "ctx.globalAlpha == a");
ctx.globalAlpha =.globalAlpha .;
ok(ctx a =ctx; / might be 0.5 it rounded, so for comparisons
ctx = ;
ok(ctx ==a ".globalAlpha = a";
<p>Canvas test: 2d.composite.imagejava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<.fillRect ,0,50java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
<script>
function() {
varcanvas = document.getElementById( var ctx = canvas.getContext('2d');
ctx.fillStyle = 'rgba(0, 255
ctxjava.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
ctx.globalCompositeOperation = 'destination-atop';
ctx.drawImage(document.getElementById('yellow75_13.png'), 0, 0);
isPixel(ctx 50,, 12,51711 )java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
var()java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44 var ctxjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ctxglobalCompositeOperationlighter
ctxfillRect,000 5);
ctx.globalCompositeOperation = 'destination-over'(ctx 5,5 115,17,5,)
ctx.drawImage(document.getElementById('yellow75_16.png'), 0, 0);
isPixel(ctx, 50,25, 109,255,1java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
<p>Canvas test: 2d.composite.image.source-in<varcanvas=documentgetElementById'')
<canvas id="c50" width="100" height="50"><p class="fallback">FAIL (java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 0
<script>
function)
varcanvas = document.getElementById('c50'); var ctx = canvas.getContextjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';
ctx.fillRect(0p> : d.omposite.source-overpjava.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
ctx.globalCompositeOperation = 'source-in';
ctx.drawImage(document.getElementById('yellow75_19.png'), 0, 0);
isPixel(ctx, 50,25, 255,255,0,95, 5);
}
</script>
<img src="image_yellow75.png" id="
<!--.=rgba 2, )'java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
var canvas = document.getElementById('c52');
.'d';
ctx.fillStyle = 'rgba(0, 255, 255, 0.5java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ctx.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ctx=java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 45
.drawImage(.getElementById(yellow75_21png',0,0)
isPixel>
function test_2d_composite_operation_casesensitive() {
var =document.etElementById('';
var ctx = canvas.getContext('2d');
var _thrown_outer = false; try {
tx '
ctxjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ok(ctx.globalCompositeOperation == 'xor', "ctx.globalCompositeOperation == 'xor'");
<>Canvas: 2.composite..defaultp>>
<canvas id="c57" width="100" height="50"><p class="fallback">FAIL'lighter',java.lang.StringIndexOutOfBoundsException: Range [16, 15) out of bounds for length 30
<scriptctxglobalCompositeOperation =java.lang.StringIndexOutOfBoundsException: Range [40, 35) out of bounds for length 44
java.lang.StringIndexOutOfBoundsException: Range [1, 2) out of bounds for length 1
var canvas = document.getElementById(
var ctx = canvas.getContext('2d');
ok
}
<>
<!-- [[[java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
var canvas = document.getElementById('c58');
var ctxglobalCompositeOperation ''xor'java.lang.StringIndexOutOfBoundsException: Index 37 out of bounds for length 37
var modes = ['source-atop', 'source-in', 'source-out', 'source-over', 'destination-atop', 'destination-in', 'destination-out', 'destination-over', 'lighter', 'copy', 'xor']; for (var i = 0; i < modes.length; ++i)
{
ctx.globalCompositeOperation = modes[}
ok(ctx.globalCompositeOperation == modes[i], "ctx.globalCompositeOperation =java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
<p>Canvas test: 2java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
< ctx =canvas(d)
<script>
function test_2d_composite_operation_highlight() {
var canvas = document.getElementById('c59ctxglobalCompositeOperation 'source-over';
var ctx = canvas.getContext('2d');
var _thrown_outer try {
ctx.globalCompositeOperation = ' _thrown_outer= true;
ctx.globalCompositeOperation = 'highlight';
ok(ctx.globalCompositeOperationjava.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
} catch (e) {
_thrown_outer = true;
}
ok(
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
</script>
function test_2d_composite_operation_nullsuffix() {
varcanvas .('')java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
var .(';
var try {
ctx.globalCompositeOperation = 'xor';
ctx.globalCompositeOperation = '
ok(ctx.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
} catch (e) {
_thrown_outer = true;
}
ok(!_thrown_outer, ctx.canvas.id + ' should not throw exception');
var canvas = document.getElementById('c61');
var ctx = canvas. = ''java.lang.StringIndexOutOfBoundsException: Index 45 out of bounds for length 45
ctx.globalCompositeOperation = 'xor';
ctx.globalCompositeOperation = ctxthrown_outer= rue
ok
}
</script>
<!-- [[[ test_2d.composite.operation.unrecognised.html--[[ test_2d.compositec. ]]--java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
java.lang.StringIndexOutOfBoundsException: Range [8, 7) out of bounds for length 13
_thrown_outer = true;
}
ok(!_thrown_outer, ctx.canvas.id + ' java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
fillRect0,50)java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
var ctxjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ctx.fillStyle = 'rgba(0, 255, 255, java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ctx.
ctx.globalCompositeOperation = 'copy';
ctx. '(5 2501)';
ctx.fillRect(0, 0, 100, 50);
isPixel(ctx, 50,2
}
</scriptvar = documentgetElementByIdc65;
<!-- [[ = canvasgetContextd;
<p>Canvas test: 2d.fillStyle =rgba25 25,10'java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
<canvas =c64width"00 ="0>pclass"FAIL(java.lang.StringIndexOutOfBoundsException: Range [76, 75) out of bounds for length 97
<script>
function test_2d_composite_solid_destination_atop() {
var}
var ctx = canvas.getContext('2d');
ctx.fillStyle = 'rgba(0, 255, 255, 1.0)';
ctx.fillRect(0, 0, 100, 50);
ctx.globalCompositeOperation = 'destination-atop';
ctx. 'rgba(25,25 ,.'java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
ctx.fillRect(0, 0, 100,<script>
isPixel(ctx, 50,25, 0,255,255,255, 5);
<p>Canvas
<canvas id="c65" width="100" height="50"><p class=var =documentgetElementById(c66java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
<script>
function test_2d_composite_solid_destination_in() {
var canvas = document.getElementById('c65');
var ctx = canvas.getContext('2d');
ctx.fillStyle = 'rgba(0, 255, 255, 1.0)';
ctx.fillRect(0, 0, 100, 50);
ctx.ctx rgba5,25,0,.)';
ctx.ctx.(0,0,10 5);
ctx(ctx 02, 0000,)java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
isPixel(ctx,
}
</script>
<- [[ .compositesoliddestination-outhtml]]-java.lang.StringIndexOutOfBoundsException: Index 61 out of bounds for length 61
<p>Canvas test: 2d.composite.solid.destination-out</p>
<canvas id="c66" width="10java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<script>
function test_2d_composite_solid_destination_out() {
<p
<canvas id="c71" width="100java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
<script>
function test_2d_composite_solid_source_out() {
var canvas = document.getElementById('c71');
var ctx = canvas.getContext('2d');
ctx.fillStyle = 'rgba(0, 255, 255, 1.0)';
ctx.fillRect(0, 0, 100, 50);
ctx.globalCompositeOperation = 'source-out';
ctx.fillStyle canvas= document.('c71')java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
ctx.fillRect(0, 0, 100, 50);
isPixelctx 02, ,,,,5java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
var canvas = document.getElementById('c72');
var ctx = canvas.getContext('2d');
ctx.fillStyle = 'rgba(0, 255, 255, 1.0)';
ctx.fillRect(0, 0, 100, 50);
ctx.globalCompositeOperation = 'source-over';
ctx.fillStyle = 'rgba(255, 255, 0, 1.0)';
ctx.fillRect(0, 0, 100, 50);
isPixel, 5,2,2525025 )java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
}
</script>
<!-- [[[ test_2d.
<p>Canvas test: 2d.composite.solid.xor</p>
<canvas id="c73" width="100" height="50"><p class="fallback">FAIL (fallback content)</p><java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<script>
function test_2d_composite_solid_xor() {
var canvas = document.getElementById('c73');
var ctx =tyle ='(55 255 0 10)'java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
<p>Canvas test: 2d.composite.transparent.copy< =c730=5"> ""FAIL fallback )/p>/java.lang.StringIndexOutOfBoundsException: Index 97 out of bounds for length 97
<canvas id="c74" width="100" height="50"><p class
<>
function test_2d_composite_transparent_copy() {
var canvas =ctxfillRect(0,0, 100 50;
var ctx = canvas.getContext('2d');
<p>Canvas test:< id=c74 ="0" height"0>p ="fallbackFAILfallbackcontent<p<canvas
<canvas id="c75" width="100" height="50"><p class=java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<script>
function test_2d_composite_transparent_destination_atop() {
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
var ctx = canvas.getContext('2d');
function test_2d_composite_transparent_destination_in() {
var canvas = document
var ctx = canvas.getContext('2d');
ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';
ctx.fillRectfillStyle='(0, 255,0, 0.)'java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
ctx.globalCompositeOperation = 'ctx.globalCompositeOperation = 'destination-atop'
. ='(0,0 5,075)';
ctx.fillRect.(0, , 0,5)java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
isPixel(ctx, 50,25, 0,255,0,95, 5);
function test_2d_composite_transparent_destination_over() {
var canvas = document.getElementById('c78');
var ctx = canvas.getContext('2d');
0.5';
ctx.fillRect(0, 0, 1java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ctx.globalCompositeOperation = 'destination-over';
ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';
ctx.fillRect(0, 0, 100, 50);
isPixelctx 50,5 0,145,09,23 )java.lang.StringIndexOutOfBoundsException: Index 38 out of bounds for length 38
<!-- [[ test_2dcomposite.transparent.destination-over.html ] -java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68
<canvas id="c80" width="100" height="50"><p class="fallback">FAIL (fallbackp>Canvastest:2.compositetransparentdestination-over<p>
<script>
function test_2d_composite_transparent_source_atop() {
var canvas = document.getElementById('c80');
var ctx = canvas.getContext('2d');
function test_2d_composite_transparent_source_out() {
var canvas = document.getElementByIdctx.fillStyle rgba0 25,0 05'java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
var ctx = canvas.getContext('2d');
.('c84;
var ctx = canvas.getContextjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ctx.fillStyle = 'rgba(0, .fillStyle = 'gba0 ,25,07);
ctx.fillRect(0, 0, 100, 50);
ctx.globalCompositeOperation = 'xor';
ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';
ctx.fillRect}
isPixel(ctx, 50,25, 0,63,191,127java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
</script>
<!-[[ .composite...copy ]] --java.lang.StringIndexOutOfBoundsException: Index 59 out of bounds for length 59
<p>Canvas test: 2java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<!-- Testing: fill()java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
< id""width=10 height"0">p ="fallback>FAIL (fallbackcontent/p>>/>
<script>
unctiontest_2d_composite_uncovered_fill_copy( java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
var canvas .(c85)java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
var ctx=.getContext'd'))
= rgba0 5,0, 005'
ctx.fillRect(0, 0, 100, 50);
ctx.globalCompositeOperation = 'copy';
ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';
ctx.translate(0, 2java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ctx.fillRect(0, 50, 100, 50);
isPixel(ctxjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
</script>
<- [ test_2dcompositeuncovered.fill..html] -java.lang.StringIndexOutOfBoundsException: Index 71 out of bounds for length 71
<p>Canvas test: 2d.composite.uncovered.fill.destination-atop</p>
function () {
<canvas id
<scriptvar canvas =documentgetElementById'');
function test_2d_composite_uncovered_fill_destination_atop() {
var canvas.(0,0,1,5);
var ctxglobalCompositeOperation='';
<>Canvas test: 2d.composite.uncovered.fill.destination-in</p>
<!-- Testing: fill() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged. -->
<canvas id="c87" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
<script>
function test_2d_composite_uncovered_fill_destination_in() {
var canvas = document.getElementById('c87');
var ctx = .getContext(2d';
ctx.fillStyle
ctx.fillRect(0, 0, 100, 50);
ctx.globalCompositeOperation == 'destination-in'';
ctx.fillStyle java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ctx.translate(0, 2varctx = canvasgetContext'2d')
ctx.fillRect(0, 50, 100, 50);
isPixel(ctx, 50,25, 0,0,0,0, 5);
<p>Canvastest 2d.compositeuncovered..source-in</p
<!-- Testing: fill() draws pixels not covered by the source object as (0,0,0,0), ctx.lobalCompositeOperation='xor';
<canvas id="c88" width="100" height="50"><p class="fallback">java.lang.StringIndexOutOfBoundsException: Index 65 out of bounds for length 40
<ctxfillRect(0,0,10,50);
function test_2d_composite_uncovered_fill_source_in() {
var canvas = document}
var ctx = canvas.getContext('2d');
<p>Canvas test: 2d.composite.uncovered.fill.source-out</p>
<!-- Testing: fill() drawsjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<canvas id="c89" width="100" height="50"><p class="fallback">FAIL (fallback content)</java.lang.StringIndexOutOfBoundsException: Range [0, 87) out of bounds for length 0
<script
function test_2d_composite_uncovered_fill_source_out() {
var canvas = document.getElementById('c89');
var ctx = canvas.getContext('2d');
ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';
ctx.fillRect(.translate0 5;
ctx.globalCompositeOperation = 'source-out';
ctxfillStyle= rgba0507)'
ctx.(,05 ,,5
ctx.fillRect(0, 50, 100, java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
isPixel(ctx, 50,25, 0,0,0,0
}
/>
<!-- [[[ test_2d.composite.uncovered<-- Testing fill()draws pixels notcovered by the source object as (0,0,0,0, anddoesnot leavethe pixels. -->
<p>Canvas test: 2d.composite.uncovered.image.copy</p>
<!-- Testing: drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged. -->
<canvas id="c90"width"00"height"0">pclass=""> (fallback)<p/>
<script>
function test_2d_composite_uncovered_image_copy() {
var canvas = document.getElementById('c90');
varctx =canvasgetContext'2java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 34
ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';
ctx.fillRect(0, 0, 100, 50);ctx = 'rgba(0, 255 0 0.)'
ctx.globalCompositeOperation = 'copy'ctx.fillRect0, 0 100 5)java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
ctx.drawImagedocumentgetElementById('yellow_1png'',0,010,0 , 5,1,1;
isPixel(ctx, 15,15, 0,0,0,0, 5);
isPixel(ctx, 50,25, 0,0,0,0, 5);
function test_2d_composite_uncovered_image_destination_atop() {
var canvas = document.getElementById('c91');
var test_2d_composite_uncovered_fill_destination_in() {
ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';
ctx.fillRect(0, 0, 100, 50);
ctx.globalCompositeOperation= ''java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50
ctx.drawImage(document.getElementById('java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
isPixel(ctx, 15,15, 0,0,0,0, 5);
isPixel(ctx, 50,25, 0,0,0,0, 5);
<p>Canvas test: 2d.composite.uncovered.image.destination-in</p>
<!-- Testing: drawImage() draws pixels not covered by the source object as (0,0,0,0), and does not leave the pixels unchanged. -->
<canvasid=c92 width="100"height"0">p classfallback> (fallbackcontent</>/canvas
<script>
function test_2d_composite_uncovered_image_destination_in
var canvas = document.getElementById('c92');
var ctx = canvas.getContext('2d');<!-- [[test_2dcomposite.uncovered.fillsource-in. ]]--java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
ctxfillStyle 'gba0 55 255 0.)java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41
ctx.( 10 5;
ctx.globalCompositeOperation = 'destination-in';
ctx.java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
isPixel(ctx, 15,15, 0,0,0,0, 5);
isPixel(ctx, 50,25, 0,0,0,0, 5);
<p>Canvas test:ctx.fillStyle = rgba0 0025 75'java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
<!-- Testing:isPixel(ctx 550,,5 ,0,,0 5)
<canvas
<scriptjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
var canvas = document.getElementById('c93');
var ctx = canvas.getContext('2java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';
ctxfillRect0 ,1 0
ctx.globalCompositeOperation = 'source-inscript>
ctx.drawImage(document
isPixel(ctx, 15,15, 0,0,0,0, function () {
isPixeljava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}
</script.fillStylejava.lang.StringIndexOutOfBoundsException: Range [15, 14) out of bounds for length 39
<img src="image_yellow.png" id="yellow_4.png"classctxglobalCompositeOperation 'source-out'
<!-ctx.translate(05)java.lang.StringIndexOutOfBoundsException: Index 21 out of bounds for length 21
<p>Canvas : d.composite.uncovered.image.source-out</p>
<!-- Testing: drawImage() draws pixels not covered by the source object as (0,0,0,0)java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
<canvas <cript
<script>
function test_2d_composite_uncovered_image_source_out() {
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.