Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/canvas/test/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 734 kB image not shown  

Quelle  test_canvas.html   Sprache: HTML

 
 products/Sources/formale Sprachen/C/Firefox/dom/canvas/test/test_canvas.html


<DOCTYPE HTML
<>Canvas</>
<script src="/tests/SimpleTest/SimpleTest.js"></script>
<link rel="stylesheet" href="/tests/SimpleTest/test.css">
<body>
<script>

SimpleTest
SimpleTest("untriaged)
const Ccjava.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 0
  = SpecialPowers.Cr;

function IsD2DEnabled( {
        var Cc.org.(SpecialPowers.;

    try {
        enabled = Cc["@mozilla.org/gfx/info;1"].getService(SpecialPowers.Ci.nsIGfxInfo).D2DEnabled;
    } catch(e) {}

    ;
}

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) {}

    return os.indexOf("Linux") == 0 &&
           navigator.includesAndroid;
}

function IsWindows() {
    var os = "";

    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>

function test_2d_canvas_readonly() {

var test: d..basic/
varcanvas="c3" width0" height="50" style": f0 class">FAIL ( content)

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() {

var canvas = document.getElementById('c2');
var ctx ctx canvas('d)

ok.fillRect00 50;


}
</script>

<!-- [[[ test_2d.clearRect.basic.html ]]] -->clearRect,,10 0;

<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');

ctx.fillStyle = '#f00';
ctx.fillRect(0, 0, 100, 5
ctx
isPixel, 502,0000 )


}
</script>

<!-- [[[ test_2d.clearRect.clip.html ]]] -->

<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"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 test: 2d.clearRect.globalalpha</p>
<canvas id="c5" width="100" height="50" style="background: #0f0"><p class="fallback">FAIL (fallback content)</p></canvas>
<script>


function test_2d_clearRect_globalalpha() {

var canvas = document.getElementById('c5');
var ctx = canvas.getContext('2d');

ctx.fillStyle = '#f00';
ctx.fillRect(0, 0, 100, 50);
ctx.globalAlpha = 0.1;
ctx.clearRect(0, 0, 100, 50);
isPixel(ctx, 50,25, 0,0,0,0, 0);


}
</script>

<!-- [[[ test_2d.clearRect.globalcomposite.html ]]] -->


<p>Canvas test: 2d.clearRectctxclearRect0, 0, 100, 550)java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
<canvas
<script


function

var  .getElementByIdc6;
var ctx = canvas.getContext('2d');

ctx.fillStyle = '#f00';
ctx
x.globalCompositeOperation '';
ctx idwidth0=backgroundf0=""> (fallback/canvas
isPixel(ctx, 50,25, 0,0,0,0, 0);


}
</script

<!-- [[[ test_2d.clearRect.negative.html ]]] -->

<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


function test_2d_clearRect_negative() {

var canvas = document.getElementById('c7';
varctx2,0,0,00,0;

. =''
(, 253,0000,0
ctx,537, 0,00,0 )java.lang.StringIndexOutOfBoundsException: Index 32 out of bounds for length 32
ctx.
tx(0, 5, 50 -25;
ctx.clearRect
isPixel(ctx, 2512, ,000, 0);
isPixel(ctx, 75,12, 0,0,0,0, 0);
isPixel(ctx, 25,37, 0,0,0,0<canvas id="c8" width"10"height0>p classfallbackFAIL content</p</>
isPixel(ctx, 75,37java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0


}
</script ctx canvasgetContextd';

<!-- [[[ test_2d.clearRect.nonfinite.html ]]] -->

<p>Canvas test: 2d.clearRect.nonfinite</p>
<!-- Testing: clearRect() with Infinity/NaN is ignored -->
<canvas id="
<script>


function test_2d_clearRect_nonfinite

var canvas=document.getElementByIdc8;
var ctx = canvas.getContext('2d');

var _thrown_outer = false;
try{

ctxfillStyle= '0f0';
ctx.fillRect(0, 0, 100, 50);

ctx.clearRect(Infinity, 0, 100, 50);
ctx.clearRect(-Infinity, 0, 100, 50);
ctx.clearRectNaN, 0 110 0;
ctx.clearRect(,-, 100, 0);
ctx.clearRect(0, -Infinity, 100, 50);
ctx.clearRect(0, NaN, 100, 5ctx.(0, NaN10,5)
ctx.clearRect0 , , 50;
ctx.clearRect(0, 0, -Infinity, 50);
ctx.clearRect(0, 0, NaN.clearRect 0 -nfinity0;
ctx.clearRect(0, ctx.learRect ,NaN0)java.lang.StringIndexOutOfBoundsException: Index 29 out of bounds for length 29
ctx(0 ,10 -);
ctx.clearRect0 0,NaN
ctx(Infinity, 10 0;
ctx(Infinity, Infinity)
ctx.clearRect(, Infinity, Infinity
ctxclearRect, Infinity0,Infinity
ctx(Infinity , 50;
ctx.clearRect(Infinity, 0, Infinity, Infinity);
ctx.clearRect(Infinity, 0ctx.(Infinity0 Infinity,Infinity
ctx(0,Infinity, 50)
ctx.clearRect0Infinity, 0;
ctx.clearRect Infinity Infinity);
ctx.ctxclearRect,, 10,);

50,25020,25 )

} catch (isPixel(ctx, 50,25, 0,255,0,255, 0);
    _thrown_outer = true;
}
ok(!_thrown_outer, ctx.canvas catch){


}
</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>

var canvas =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);


}
<script

<!-- [[[ test_2d.clearRect.shadow.html ]]] -->

<p>Canvas test: 2d.clearRect.shadow</p>
<canvas id="c10" width="100" height="50" style=<script
<cript


function test_2d_clearRect_shadowfillRect(,0 10 0;

var canvas = 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


}
</script>

<!-- [[[ test_2d.clearRect.transform.html ]]] -->

<p>Canvas test: 2d.clearRect.transform>
<canvas id="c11"function () {
<script


function test_2d_clearRect_transform() {

var canvas = 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;


}
</script

<!-- [[[ test_2d.clearRect.zero.html ]]] -->

<p>Canvas test: 2d.clearRect(
<canvas   .getElementById)
<script>


function test_2d_clearRect_zero() {

var canvas = document.getElementById
 ctx .('';

ctx.clearRect 0 0, 0;
ctx.(0 ,0 0;
ctx.clearRect(0, 0, 100, 0);
ctx.clearRect(0,ctxclearRect0 ,0;
ctxclearRect ,0 )
isPixel


}
</script

<!-- [[[ test_2d.composite.canvas.copy.html ]]] -->

<p>Canvas canvasid" =10 =5"<="fallback>FAIL (allbackcontent
< id=c13="100 ="5"< class=fallback> fallback content
<script>


function test_2d_composite_canvas_copy test_2d_composite_canvas_copy

   .('')
var ctx =   .(2'


var.(')
canvas2..height
. height
var.(.'' 
ctx2  rgba2 .)'
. = rgba,5'
ctxctx = 'copy';
ctx.globalCompositeOperation = 'copy';
ctx.drawImage(canvas2, 0, 0);
isPixel(ctx, 50,25, 255,255ctxdrawImage, 0, 0)


}
</script>
<img src="image_yellow75.png" id="

<!-- [[[ test_2d.composite.canvas.destination-atop.html ]]] -->

p : 2..<>
<canvas id=
<script>


function<>Canvas test2composite.destination-atop</p>

var.(c14
var ctx = canvas.java.lang.StringIndexOutOfBoundsException: Index 8 out of bounds for length 8


var canvas2
canvas2 canvas;
canvas2.height = .width =canvaswidth
var ctx2 = canvas2.getContext(' = canvas2.('2d);
ctx2(document.('yellow75_2.png',0 0;
ctx.fillStyle ='rgba(0, 255, 25, 05';
ctxctx.(0, 0, 10 0;
ctx..globalCompositeOperationdestination-atop
ctx.drawImage(canvas2ctx.drawImage(canvas2,0, 0);
isPixel(ctx, 50,25, 127,isPixel, 5,5 2,2179, 5);


}
</script>
<img src srcpng=".png" class">

<!-- [[[ test_2d.composite.canvas.destination-in.html ]]] -->

<> test dcomposite.destination-in</>
<canvas id="c15" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
<>


function test_2d_composite_canvas_destination_in() {

var canvas = 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


}
ipt
<img

<!-- [[[ test_2d.composite.canvas.destination-out.html ]]] -->

<pCanvastest: d.compositecanvas</p>
< id""="10"height"< ="fallback fallback/<canvas
<script>


function test_2d_composite_canvas_destination_out


var


varcanvas2document('')
canvas2.width = canvas.width;
canvas2
ctx2.getContext2d)
ctx2.drawImage(document.getElementById.widthcanvas;
ctxfillStyle'(0, 55 25 .);
ctx.fillRect(0, 0, 100, 50);
ctx.globalCompositeOperation = 'destination-out';
ctx.drawImage(canvas2, 0, 0);
ixelctx02,0255253,5;


}
</script
.fillStyle rgba5,25 0.);

<!-- [[[ test_2d.composite.canvas.destination-over.html ]]] -->

<p.(canvas2,0;
(ctx02,025253,5;
<script>


function test_2d_composite_canvas_destination_over() img src=image_yellow75" id".png"esource>

var canvas = document.getElementById('c17');
var ctx = canvasgetContextd)


var =
canvas2
canvas2 ( 
var ctx2 = canvas2 canvas=document.('');
ctx2.var ctxctx=.getContext2';
ctx.fillStyle = 'rgba(0, 255, 255, 0.
ctx.fillRect(0, 0, 100, canvas2 document.createElement';
ctx.globalCompositeOperation = 'destination-over';
ctx.drawImage.width .;
isPixel(ctx.height.;


}
</script>
<img.(document('yellow75_5.png'), , 0;

<!-- [[[ test_2d.composite.canvas.lighter.html ]]] -->

..canvaslighter>
< ="c18" width0 ="50< fallbackFAIL ( )/
<script>


function  

var 
var ctx


var canvas2 = document.createElement('canvas');
canvas2=.;
canvas2.height = canvas.height;
var ctx2
.(getElementById.) ,java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 64
ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';
ctx.fillRect(0, 0, 100, 50);
ctx.globalCompositeOperation = 'lighter';
ctx.drawImage(canvas2, 0, 0);
isPixel(ctx<cript


}
</script canvas=.getElementById'java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 44
<  =document''

<!-- [[[ test_2d.composite.canvas.source-atop.html ]]] -->. = canvaswidth

<p>Canvas: 2composite.source-atopp>
<canvas id="c19" width=.drawImage.getElementById.',0,0;
<script>


function() {

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);


}
</script>
<img src=" ctx = canvas.etContext'd';

<!-- [[[ test_2d.composite.canvas.source-in.html ]]] -->

<p>Canvas canvas2 =document('canvas');
<canvas id="c20" width="100" height="50"><p class=canvas2.height = canvas.height
<script>


functiontest_2d_composite_canvas_source_in(){

varcanvas= documentgetElementById(c20;
var ctx = canvas.getContext'2d';


varcanvas2 document('canvas);
canvas2.width = canvas.width;
canvas2.height = canvas.height;
var ctx2 = canvas2.getContext('2d');
ctx2(documentgetElementByIdyellow75_8'), 0,0);
ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';
ctx.fillRect(0, 0, 100, 50);
ctx.globalCompositeOperation = 'source-in';
ctx.drawImage(canvas2, 0, 0java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
isPixel(ctx, 50


}
</script
<img src="image_yellow75.png" id=<cript

<!-- [[[ test_2d.composite.canvas.source-out.html ]]] -->

<p>Canvas test: 2d.composite.canvas.source-out</p>
<canvas id="c21" width="100" height="50"><p class="fallback">FAIL (fallback content)
<script>


function() {

var canvas=document.getElementByIdc21java.lang.StringIndexOutOfBoundsException: Range [44, 45) out of bounds for length 44
var = canvasgetContext2);


var canvas2 = document.createElement('canvas');
canvas2.width = canvas.width;
canvas2 =canvas.height
var ctx2 = canvas2.getContext('2d');
ctx2(documentgetElementById('yellow75_9.ng), 0,0);
ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';
ctx.fillRect(0, 0, 100, 50);
ctx = 'source-out';
ctx.drawImage(canvas2.drawImage(, 0, 0;
isPixel(ctx, 50,2isPixel(ctx 5,5,255,25095 5;


}
</script>
<img src

<!-- [[[ test_2d.composite.canvas.source-over.html ]]] -->

anvastest2..canvas.source-overp>
<canvas id="c22" width="100" height="50"><p class="fallback">FAIL
<script>


function test_2d_composite_canvas_source_over() {

varp> testdcomposite.source-out/p>
var ctx = canvas.getContext('2d')canvasidc21width0"height"5"

FAIL (fallback )




var canvas2 test_2d_composite_canvas_source_out) {
canvas2.width = canvas.width;
canvas2.height = canvas.height;
var ctx2
ctx2.drawImage canvas = documentgetElementById('');
txfillStyle'rgba0 2,25 .);
ctx.fillRect
ctx  .('')
ctx  .;
(ctx,52 1,253,,5;


}
</script>
<ctx.illStylergba 5);

<!-- [[[ test_2d.composite.canvas.xor.html ]]] -->

<p>Canvas test: 2d.composite.canvas.xor</p>
<anvas="c23" width"100" height"5">classfallback> (content>/anvas
<script>


function>

var
var ctx =


var canvas2 = document.createElement('canvas');
canvas2.width = canvas.width;
canvas2.height = canvas.height;
var ctx2 = canvas2.getContext('2d');
ctx2.drawImage>
ctx.fillStyle
ctx(0,,10 0;
ctx.globalCompositeOperation = 'xor';
ctx.drawImage(canvas2, 0, 0);
isPixel ctxgetContextd';


}
<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);



</script>

<!-- [[[ test_2d.composite.clip.destination-atop.html ]]] -->

<> test 2composite.destination-atop/>
<!-- Testing: fill() does not affect pixels outside the clip region. -->
< id"width=10 =5">p class=fallback (fallback)</></anvas
<script>


functionjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

var=documentgetElementByIdc25
var ctx = canvas.getContext('2d');


ctx.fillStyle = '#0f0';
ctx(0 ,10, 0;
ctx.globalCompositeOperation = 'java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72
tx,-01,0java.lang.StringIndexOutOfBoundsException: Range [27, 28) out of bounds for length 27
ctx(
ctx.fillStyle = ' canvas document.getElementById('');
ctx.fillRect(0, 0, 50, 50);
isPixel(ctx, 25,25, 0,255,0,255
isPixelctx5,5 025025 )


}
</script>

<!-- [[[ test_2d.composite.clip.destination-in.html ]]] -->)

<>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() {

var canvas = 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)


}
</script>

<!-- [[[ test_2d.composite.clip.destination-out.html ]]] -->

<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);


} =c271height" ="FAIL)<>
</script>

<!-- [[[ test_2d.composite.clip.destination-over.html ]]] -->

>Canvas: 2.compositeclip</>
<!-- Testing: fill() does not affect pixels outside the clip region. -->
<canvas id="c28" width="100" height ctx canvas.('d);
<script>


function test_2d_composite_clip_destination_over() {

var .rect0 -20,1, 10;
var ctx = canvas.getContext('2d');


ctx.fillStyle = '#0f0';
ctx.fillRect(0, 0, 100, 50);
ctx = '';
ctx.rect(-20, -2(ctx52,025,,5 )
ctx.
ctx.fillStyle
ctx(0,, 0 0;
isPixel(ctx
isPixel(ctx, 75,25,0255025,0;


}
</script>

<!-- [[[ test_2d.composite.clip.lighter.html ]]] -->

<p>Canvas test: 2d.composite.clip.<canvas id="c28" width="100" height="50">fallback ( content>/anvas>
<!-- Testing: fill() does not affect pixels outside the clip region. -->
<" width=10 height="5">p class=fallback"FAIL<p<canvas
<script>


function test_2d_composite_clip_lighter() {

var canvas = document.getElementById(java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
var ctxcanvasgetContext)


ctx.fillStyle.clip
ctx(0, 0, 0,5);
ctx.globalCompositeOperation
ctx(-2,-0,0 1)
ctx();
ctx.fillStyle = '#f00';
ctx
isPixel(ctx, 25,25, 0,255,0,255, 0java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
isPixel(ctx, 75,25, 0,255,0,pCanvas: 2d..cliplighter>


}
<script

<!-- [[[ test_2d.composite.clip.source-atop.html ]]] -->

<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)


ctx.fillStyle = '#0f0';
005)
ctx(ctx52, ,5,,5 )
ctx.rect(-20, -20, 10, 1
ctx.clip();
ctx.fillStyle = '#f00';
ctx
isPixel(ctx, 25,25, 0,255,0,255, 0);
isPixelCanvas: 2dcomposite.source-atop>


}
</script

<!-- [[[ test_2d.composite.clip.source-in.html ]]] -->

<p>Canvas test:function test_2d_composite_clip_source_atop
<!-- Testing: fill() does not affect pixels outside the clip region. -->
<canvas id="c31" width="100" height ctxcanvasgetContextd';
<script>


function test_2d_composite_clip_source_in() {

var canvas = document.getElementById('c31');
var ctx = canvas.getContext('2d');


ctx.fillStyle
ctx.fillRect(0, 0,(ctx,5,025025 );
ctx.globalCompositeOperation = 'source-in';
ctx.rect(-20, -20, />
ctx
ctx
ctx.fillRect(0, 0, 50, 50);
isPixel(ctxpCanvas: dcompositeclip</
isPixel(ctx, 75,2,0,25,,5, )java.lang.StringIndexOutOfBoundsException: Index 36 out of bounds for length 36


}
</script>

<!-- [[[ test_2d.composite.clip.source-out.html ]]] -->()

<(d
<!-- Testing: fill() does not affect pixels outside the clip region. -->
 id=<=fallback )p/>
<script>


function test_2d_composite_clip_source_out,52,02505,)

var canvas = document.getElementById('c32
var ctx= canvas.getContext('2d';


ctx.fillStyle ='#0f0';
ctx.fillRect(0,
ctxglobalCompositeOperation =source-out

ctx.clip();
ctx.fillStyle = '#f00';canvas=c32=10 "< ="fallback( )/p>
ctx.fillRect(0, 0, 
isPixel(ctx, 2
isPixel(ctx


}
/>

<!-- [[[ test_2d.composite.clip.source-over.html ]]] -->

< : 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


function test_2d_composite_clip_source_over() {

var
var ctx =/cript


ctx.fillStyle = '#0f0';
ctx
ctx.globalCompositeOperation : 2d.composite..source-over>
ctx.rect(-20, -20, 10, 10);
ctx.clip();
ctx.fillStyle = '#;
ctx.fillRect(0, 0, 50, 50);
isPixel 52,025,,5,0;
isPixel(ctx, 75,25, 0,255script


} test_2d_composite_clip_source_over
</script

<!-- [[[ test_2d.composite.clip.xor.html ]]] -->  = canvas('2';

<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 


ctx.fillStyle = '#0f0';
ctx.fillRect(0, 0, 100, 50);
ctx id"" width1"height"0>pclass">FAIL(fallback content)/>
ctx
ctx();
ctx.fillStyle = '#f00';
ctx.fillRect(0, 0, 50, 50);
isPixel(ctx, 25,25, 0,255,0 ctx canvas('2d';
isPixel(ctx


}
</script>

<!-- [[[ test_2d.composite.globalAlpha.canvas.html ]]] -->

<p.fillStyle 'f00;
<canvas.fillRect0 ,0 0;
<script>


function() {

var canvas = 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>

<!-- [[[ test_2d.composite.globalAlpha.canvaspattern.html ]]] -->

<p>Canvas
<canvas id="c36" width
<script>

function todo_isPixel(ctx, x,y, r,g,b,a, d {
 var pos 
 var = +" +, +, a;
.(, )
    var pr
        pg = pixel.data[1],
        pb = pixel.data  =   ,+java.lang.StringIndexOutOfBoundsException: Index 23 out of bounds for length 23
        pa pixel.getImageData , 1 1;
    todo(r-d <= pr && pr <= r
       g-d pg &pg g+ &&
       b-d <= pb && pb <= b+d &&         = pixeldata
       a-d <= pa && pa <= a+d,
       "pixel "+pos+" of "+ctx.canvas.id+" is "+prg-dpgpg +d
}

unction() {

nt.etElementById'');
var ctx = canvas.getContext('2d}

var canvas2 = document.createElement('canvas');
canvas2.width = 100;
canvas2.height = 50;
var ctx2= canvas.getContext('2d');
ctx2.fillStyle = '#f00';
ctx2(0,0 0,5)

ctx.fillStyle = '#0f0';
ctxfillRect ,0,5)
ctx.fillStyle  ctx2canvas2('2d';
ctx.fillStyle 'f00'java.lang.StringIndexOutOfBoundsException: Range [24, 25) out of bounds for length 24
ctx.fillRect(0, 0, 100, 50);
isPixel(ctx, 50,25, 2,253,0,255, .fillRect 0 0,5)


}
</script>

<!-- [[[ test_2d.composite.globalAlpha.default.html ]]] -->0,0 0,5)

<p
<canvas id="c37" width="100" height="50"><p class=
<script>

function test_2d_composite_globalAlpha_default{

var canvas = document.getElementById('c37');pCanvas: 2dcomposite.default
var = canvas.getContext('2d';

ok(ctx.globalAlpha === 1.0, "ctx.globalAlpha === 1.0");


}
</script>

<!-- [[[ test_2d.composite.globalAlpha.fill.html ]]] -->

<p>Canvas test
<canvas id="c38 ="00 height">pclass="fallback (content>/anvas
<script>


functiontest_2d_composite_globalAlpha_fill

var
var ctx = canvas.getContext('2d');

ctx.fillStyle = '#0f0';
ctx(0,0 00 50;
ctx.globalAlpha = 0.01; // avoid any potential alpha=0 optimisations
ctx.fillStyle = <>
ctx.fillRect
isPixel(ctx, 50,25, 2,253,0,255, 2);


}
</script>

<!-- [[[ test_2d.composite.globalAlpha.image.html ]]] -->

<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() {

var canvas = document.p> testcomposite.image
var = .getContext('d)java.lang.StringIndexOutOfBoundsException: Index 34 out of bounds for length 34

ctx.fillStyle 
ctx.fillRect
ctx.globalAlpha = 0.01; //  ctx
ctx.drawImage(document#'
,)


}
</script(ctx 05 2,,5 )
<img src="image_red.png" id="red_1.png" class="resource">

<!-- [[[ test_2d.composite.globalAlpha.imagepattern.html ]]] -->

>2. -070java.lang.StringIndexOutOfBoundsException: Index 70 out of bounds for length 70
<canvas 
script



function

var canvas = document.getElementById('c40');
var ctx = canvas.getContext('2d')

ctx.fillStyle = '#0f0';
ctx.illRect0 0 10 0;
ctx.fillStyle = ctx.createPattern(documentvar = .getContext2';
ctx.globalAlpha = 0.01; // avoid any java.lang.StringIndexOutOfBoundsException: Index 44 out of bounds for length 23
ctx( 0 0,5)
isPixel(ctx, 50,25, 2,253,0,255, 2);



</script>
<img src="image_red.png" id="red_2.png" class

<!-- [[[ test_2d.composite.globalAlpha.invalid.html ]]] -->

<p> test..globalAlpha</p>
<canvas id="c41" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
<script>

function test_2d_composite_globalAlpha_invalid() {

var canvas = document.getElementById('c41');
var ctx = canvas

ctx.globalAlpha = 0.5;
var=ctx; //might be 0.,if is/quantised, remember future
ctx.globalAlpha = Infinity;
ok ctx canvasgetContextd)
ctx.globalAlpha = -Infinity
ok.globalAlpha a ctx== a);
ctx.globalAlpha = NaN a=ctx.globalAlpha; / might be 0.,if is/quantised remember future
ok(ctx.globalAlpha === a, "ctx..globalAlpha =Infinity;

}


lobalAlpha.html ]] ->

<nge>
<canvas id="c42" width="100" height="50"><p class="fallback">FAIL ctxglobalAlphaNaN
<script>

function test_2d_composite_globalAlpha_range() {

var canvas = 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";


}
</

<!-- [[[ test_2d.composite.image.copy.html ]]] -->

<p>Canvas test: 2d.composite.image
<canvas idc43="0"height>pclass"FAILc)/>/
<script>


 (

varctx(.getElementById)0 ;
var ctx = canvas


ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';
ctx.fillRect(0, 0, 100, 50);
ctx.globalCompositeOperation = '<
ctx.drawImage(document.getElementById('yellow75_12.png'), 0, 0);
isPixel, 50,25 25,5,,9,)


}
</script>
<img  test_2d_composite_image_destination_atop

<!-- [[[ test_2d.composite.image.destination-atop.html ]]] --> canvas document('');

<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() {

var canvas = 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


}
</script>
<img src="image_yellow75.png" id="yellow75_13.png" class="resource">

<!-- [[[ test_2d.composite.image.destination-in.html ]]] -->

<p>Canvas test: 2d.composite.image.destination-in</p>
<canvas id"" width=10"height5"< ="fallback"FAIL contentp<canvas>
<script>


function test_2d_composite_image_destination_in() {

var canvas = document.getElementById('c45');
var ctx = canvas.getContext


ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';
ctx.fillRect(0, 0, 100, 50);
ctxglobalCompositeOperationdestination-in
ctx.drawImage(document.getElementById('yellow75_14.png'), 0, 0);
isPixel(


}0 
</script>
<img src="image_yellow75.png" id="yellow75_14.png" class(ctx,5,, 0,25,55315;

<!-- [[[ test_2d.composite.image.destination-out.html ]]] -->

<p>Canvas test
<canvas id"c46 ="1"height5>< class=fallback">FAIL)<p<canvas
<script>


function test_2d_composite_image_destination_out() {

vardocument('c46');
varctx=canvasgetContext(2d');


ctx.fillStyle = 'rgba(0, 255, 255, 0.5)';
ctxfillRect0 0 10 5);
ctx.globalCompositeOperation
ctx.drawImage(document.getElementById('yellow75_15.png'), 0,function test_2d_composite_image_destination_over{
isPixel(ctx, 50,25, 0,255,255,31, 5);


}

<.fillStyle 0 5java.lang.StringIndexOutOfBoundsException: Range [32, 31) out of bounds for length 41

<!-- [[[ test_2d.composite.image.destination-over.html ]]] -->

<p>Canvas test: 2d.composite.image
<canvas
<script>


 () 

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


}
</script>
<img src="image_yellow75.png" id="yellow75_16.png" class="resource">

<!-- [[[ test_2d.composite.image.lighter.html ]]] -->/><canvasjava.lang.StringIndexOutOfBoundsException: Range [97, 98) out of bounds for length 97

<p>Canvas test: 2d.composite.image.lighter</p>
<canvas id
<script


function

var canvas = document.getElementById('c48');
var ctx = canvas.getContext('2d');


ctx
ctx.fillRect(0, 0, 100, 50);
ctx.globalCompositeOperation = 'lighter';
ctx.drawImage(document.getElementById('yellow75_17.png'), 0, 0);
isPixel(ctx, 50,25, 191,java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0


}
</script
<img="image_yellow75.png =yellow75_17..png"="resource"java.lang.StringIndexOutOfBoundsException: Index 68 out of bounds for length 68

<!-- [[[ test_2d.composite.image.source-atop.html ]]] -->

<p>Canvas test: 2d.composite.image.source-atop</p>
<canvas.fillStyle='(0, 5,5 .5'
<script>


function test_2d_composite_image_source_atop() {

var canvas = document..getElementById.ng ,0;
var ctx = canvas.getContext('2d');


ctx
ctxscript
ctxglobalCompositeOperation= source-atop
ctx(.getElementByIdpng0);
isPixel(ctx, 50,25, 191,255,63,127, 5);


}
</script>
< srcpng

<!-- [[[ test_2d.composite.image.source-in.html ]]] -->

<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)

var canvas = 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

<p>Canvas test: 2d.composite.image.source-out</p>
<canvas id="c51" width="100" height(ctx,0,,25,28556,2,;
<script>


function test_2d_composite_image_source_out() {

var/>
var ctx = canvas.< src".png"  ="yellow75_21.png" class=resource>


ctx.fillStyle = 'rgba(0, 25
ctx> : dcomposite.xor<p>
ctx.globalCompositeOperation = 'source-out';
ctxdocumentgetElementByIdyellow75_20'),0,0);
isPixel(ctx, 50,25, 255,255,0,95, 5);


}
</script>
< src idyellow75_20class"

<!-- [[[ test_2d.composite.image.source-over.html

<p>Canvas test: 2d.compositectxfillStyle =rgba 25 5,0);
<canvas id="c52" width="100" height="50"><p classctxfillRect0,, 00, 0);
<script>


function test_2d_composite_image_source_over() {

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>


}
</script>
< src=image_yellow75png d=yellow75_21png="resource">

<!-- [[[ test_2d.composite.image.xor.html ]]] -->

<p>Canvas 
< =c53 width"10 ="5">"FAIL( )
<script>


function.  'Source-over;

  =documentgetElementById(')
var ctx = canvas.getContext('2djava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0


ctx.fillStyle =ok(_, ctxcanvas +'should exception');
ctx.fillRect(0, 0, 100java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ctx.globalCompositeOperation = 'xor';
ctx.drawImage(document.getElementById('yellow75_22.png'<script
isPixel(ctx, 50,25, 191,255,63,127, 5);


}
</script>
<img src="image_yellow75.png" id="yellow75_22.png" class=<canvasid"" =10" height5"< ="fallback>FAIL (allback )

<!-functiontest_2d_composite_operation_darker(){

<p>Canvas test: 2d.composite.operation.casesensitive - bug 401788</p>
<canvas id="c54" width="100" height=" ctx=canvasgetContext(2';
<script>

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'");

catch(){
    _thrown_outer = true;
}
ok(!_thrown_outer>


}
</script>

<!-- [[[ test_2d.composite.operation.darker.html ]]] -->

<p>
canvas="" =10" ="0">

FAIL (fallback content)


<script>

function test_2d_composite_operation_darker

var canvas = document.getElementById('c56');
var ctx = canvas.getContext('2

ctx.globalCompositeOperationp>anvas:2.composite.peration</>
ctx.globalCompositeOperation=">
ok(ctx.globalCompositeOperation == 'xor'"ctx.globalCompositeOperation == 'xor'");


}
</script>

<!-- [[[ test_2d

<>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

<p>Canvas test: 2d.composite.operation.get</p>
<anvasid"c58" width="10" height"50">p classfallback> (fallbackcontent<p>/>
<script>

function test_2d_composite_operation_get() {

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
}


}
</script>

<!-- [[[ test_2d.composite.operation.highlight.html ]]] -->

<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>

<!-- [[[ test_2d.composite

<p>Canvas test: 2d.composite.operation.nullsuffix - bug 401788</p>
<canvas id="c60" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
<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');


}
</script

<!-- [[[ test_2d canvas=.getElementById'')

<>Canvastest: dcompositeoperation.overp>>
<canvas id="c61" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
<script>

functiontest_2d_composite_operation_over) {

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

<>Canvas: d...unrecognised -bug018<p>
<canvas id="c62" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
<script>

function test_2d_composite_operation_unrecognised() {

var canvas = document.getElementById('c62');
   canvasgetContext(2;

var _thrown_outer = false;
tryjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

ctxositeOperation '';
ctx.globalCompositeOperation = 'nonexistent';
ok(ctx.globalCompositeOperation == 'xor'"ctx.globalCompositeOperation == 'xorctxglobalCompositeOperation= copy;

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


}
<script

<!-- [[[ test_2d.composite.solid

<p>Canvas test: 2d.composite  =documentgetElementByIdc64)
<canvas id="c63" width="100" height
<script>


test_2d_composite_solid_copy

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);


}
</script>

<!-functiontest_2d_composite_solid_destination_out( 

<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() {

var
var ctx = canvas.getContext('2d');


ctx.fillStyle = 'rgba(0, 255, 255, 1.0)';
ctxfillRect0,1,5);
ctx.globalCompositeOperation = 'destination-out';
ctxctx(0, , 0,50;
ctx.fillRect(0, 0, 100, 50);
isPixel(ctx, 50,25, 0,0,0,0, 5);


}
</script>

<!--java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

<p>Canvas test: 2d.composite.solid.destination-over</p>
<canvas ="" width="00 =5"<p class"fallback">FAIL( content<p</canvas>
<script>


function java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

var canvas = document.getElementById('c67');
var ctx = canvas.getContext('2d');


ctx.fillStyle = 'rgba(var ctx= canvas.getContext('2d')
ctx.fillRect(0, 0, 100, 50);
ctx.globalCompositeOperation = 'destination-over';
ctx.fillStyle = 'rgba(255, 255, java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ctx.illRect0 0 10, 550;
isPixel(ctx, 50,25, 0,255,255,255, 5);


}
</script>

<!-- [[[ test_2d

<p>Canvas test: 2d.composite.solid.lighter</p>
<canvas id="c68" width="100" height="50"><p class
<script>


function test_2d_composite_solid_lighter() {

var canvas = document.getElementById('c68');
var ctx = canvas> :2..solidsource-atop<p>


ctxfillStyle '(, 25 55 1.)'
ctx.fillRect(0, 0, 100, 50);
ctx.globalCompositeOperation = 'lighter';
ctx.fillStyle = 'rgba(255, 255, 0, 1.0)';
ctx.fillRect(0, 0, 100, 50java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
isPixel(ctx, 50,25, 255,255,255,255, 5);


}
<script

<!-- [[[ test_2d.composite.solid.source-atop.html ]]] -->

<p>Canvas test: 2d.composite.fillStyle='(0, 25, 55 10';
<canvas id="c69" width="100" height="50"><p ctx.fillRect0,,10,50;
<script>


function test_2d_composite_solid_source_atop() {

var canvas = document.getElementById('c69');
var ctx = canvas.getContext('2d');


ctx.fillStyle = 'rgba(0, 255, 255, 1.0)';
ctx.fillRect(0, 0, 100, 50);
ctx.globalCompositeOperation = 'source-atop';
ctx.fillStyle = 'rgba(255, 255, 0, 1.0)';
ctx.fillRect(0, 0, 10 5)java.lang.StringIndexOutOfBoundsException: Index 28 out of bounds for length 28
sPixel, 0,25 5,5,025 )


}
<script

<!-- [[[ test_2d.composite.solid.source-in.html ]]

<p>Canvas test: 2d.composite.solid.source-in</p>
<canvas id="c70" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
<script>


function test_2d_composite_solid_source_in() {

var canvas = document.getElementById('c70');
var ctx = canvas.getContext('2d');


ctx.fillStyle = 'rgba(0, 255, 255, 1.0)';
ctx.fillRect(0, 0, 100, 50);
ctx.globalCompositeOperation = 'source-in';
ctx.fillStyle = 'rgba(255, 255, 0, 1.0)';
ctx.fillRect(0, 0, 100, 50);
isPixel(ctx, 50,25, 255,255,0,255, 5);


i(ctx 0,,5,55,5,5;
</script>

<!-- [[[ test_2d.composite.solid.source-out.html ]]] -->

<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


}
</script>

<!-- [[[ test_2d.composite.solid.source-over.html ]]] -->

<p>Canvas test: 2d.composite.solid.source-over</p>
<canvas id="c72" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
<script>


function test_2d_composite_solid_source_over() {

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


ctx.fillStyle = 'rgba(0, 255, 255, 1.0)';
.(,, 10,50;
ctx.globalCompositeOperation = 'xor';
ctx
ctx.fillRect(0, 0, 100, 50);
isPixel(ctx, 50,25, 0,0,0,0, 5);


}
</>

<!-- [[[ test_2d.composite.transparent.copy.html ]]] -->

<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');


ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';
ctx.fillRect(0, 0, 100ctxfillRect0, , 10 0);
ctx.globalCompositeOperation = 'copy';
ctx.fillStyle= '(0, 0 255 0.5);
ctx.fillRect(0, 0, 100, 50);
isPixel(ctx, 50,25, 0,0,255,191, 5);


}
</script>

<!-- [[[ test_2d.composite.transparent

<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');


ctx=rgba, 25 0, .);
ctx.fillRect(0, 0, 100, 50);
ctx.globalCompositeOperation = 'destination-atop';
ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';
ctx.fillRect(0, , 10,5);
isPixel(ctx, 50,25, 0,127,127,191, 5);


}
</script>

<!-[[test_2dcompositetransparent.estination-inhtml ]]]-->

<p>Canvas test: 2d.composite.transparent.destination-in</p>
< id"" ="100 height=5"<pclassfallback"FAIL fallback /><
<>


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);


}
</script>

<!-- [[[ test_2d.composite.transparent.destination-out!- [[test_2d.compositetransparent.destination-in.html] --

<p>Canvas test: 2d.composite.transparent.destination-out</p>
<canvas id="c77" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
<script>


function test_2d_composite_transparent_destination_out() {

var canvas = document.getElementById('c77');
var ctx = canvas.getContext(script


ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';
ctx.fillRect(0, , 10, 5);
ctx.globalCompositeOperation = 'destination-out';
ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';
ctx.fillRect(0, 0, 100, 50);
isPixel(ctx, 5025 ,550,3, 5;


}
</script

<!-- java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

<p>Canvas testctx.fillRect0,,0,50;
<canvas id="c78" width="100" height="50"><p class="fallback">FAIL (fallback content)</p></canvas>
<script>


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


}
<script

<!-- [[[ test_2d.composite.transparent.lighter.html ]]]

 test_2d_composite_transparent_destination_out
<canvas
<script>


function test_2d_composite_transparent_lighter() {

var canvas = document.getElementById('c79');
var ctx = canvas.getContext('2d');


ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';
ctxfillRect,010, 50;
ctx.globalCompositeOperation = 'lighter';
ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';
ctx.fillRect(0, 0, 100, 50);
isPixel(ctx, java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0


}
</script>

<!-- [[[ test_2d.composite.transparent.source-atop.html ]]

<!-- [[ 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');


ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';
ctx.fillRect(0, 0, 100, 50);
ctxglobalCompositeOperation'source-atop';
ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';
ctx.fillRect(0, 0, 100, 50);
isPixel(ctx, 50,25, 0,63,191,127, 5);


}
</script>

<!-- [[[ test_2d.composite.transparent.source-in.html ]]] -->

<p>Canvas test: 2d.composite.transparent.source-in</p>
<canvas id="c81" width="100" height"50"<p classfallback"FAIL ((fallbackcontent)


<script>


function test_2d_composite_transparent_source_in() {

var canvas = document.getElementById('c81');
var ctx = canvas.getContext('2d');


ctx.fillStyle = 'rgba(0java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
ctx.fillRect(0, 0, 100, 50);
ctx.
ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';
ctx.fillRect(0, 0, 100, 50);
isPixel(ctx< id=c79" ="100"height=50"">FAIL fallbackcontent</>canvas


}
</script>

<!-- [[[ test_2d.composite.transparent.source-out.html ]]] -->

<p>Canvas test: 2d.composite.transparent.source-out</p>
<canvasid"c82"" =100 height"50>pclassfallback> (fallbackcontent</></canvas
<script>


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');


ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';
ctxfillRect0,0 10 0;
ctx.globalCompositeOperation = 'source-out';
ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';
ctx.fillRect(0, 0, 100, 50);
isPixel(ctx, 50,25, 0,0,255,95, 5);


}
</script>

<!- [test_2dcompositetransparentsource-overhtml]] -java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63

<p>Canvas test: 2d.composite.transparent.source-over</p>
<canvas id="c83" width="100" height<canvas id"c80 width="10" height"50"

FAIL (fallback content)


<script>


function test_2d_composite_transparent_source_over() {

var canvas = document
  =canvas(2';


ctx.fillStyle = 'rgba(0
ctx.fillRect(0,ctx.fillStyle= 'rgba(0 25 , 0.)';
ctxmpositeOperation source-over
ctxfillStyle rgba 507java.lang.StringIndexOutOfBoundsException: Index 40 out of bounds for length 40
ctxctxfillRect(,0 00 0);
isPixel(ctx, 50,25, 0,36,218,223, 5);


java.lang.StringIndexOutOfBoundsException: Index 13 out of bounds for length 1
</script>

<!-- [[[ test_2d.composite.transparent.xor.html ]]] -->

<p>Canvas test
<canvasid"" ="100 height=50""

/canvas>
<script>


functiontest_2d_composite_transparent_xor{

   .('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>/>
<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='';


ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';
ctx.fillRect(0, 0, 100, 50);
ctx.globalCompositeOperation = 'destination-atop';
ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';
ctxtranslate, 2;
ctx.fillRect(0, 50, 100, 50);
isPixel(ctx, 50,25, 0,


}
</script>

<!-- [[[ test_2d.composite.uncovered.fill.destination-in.html ]]] -->

<>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);


}
</script>

<!-- [[[ test_2d.composite.uncovered.fill.source-in.html ]]] -->

<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');


ctx.fillStyle = 'rgba(0, 255, 0, 0.5)';
ctx.(0, 0 00 0)
ctx.globalCompositeOperation = 'source-in';
ctx.fillStyle = 'rgba(0, 0, 255, 0.75)';
ctx.(0, 2);
ctx.fillRect(0, 50, 100, 50);
isPixel(ctx,5025, 00,00,0 5;


}
</script>

<!-- [[[ test_2d.composite.uncovered.fill.source-out.html ]]] -->

<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);


}
</script>
<img src="image_yellow.png" id="yellow_1.png" class="resource">

< [test_2d.uncovered.destination-atop. ] -java.lang.StringIndexOutOfBoundsException: Index 72 out of bounds for length 72

<p>Canvas test: 2d.composite.uncovered.image.destination-atop</p>
<!-- Testing: drawImage() draws pixels!-Testing fill(  pixels covered  the object (,000,a doesnot  pixels unchanged--
canvas id""width"10 =""0>pclass=""FAIL fallback )
<script>



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);



</script>
<img src="image_yellow.png" id="yellow_2.png" class="resource">

<-- [[[ test_2d.composite.uncovered.image.destination-in.html ]]] -->

<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);


 ctx =canvas.etContext'2d);
</script>
<img src="image_yellow.png" id="yellow_3.png" class="resource">

<!-- [[[ test_2d.composite.uncovered.image.fillRect0 0 1 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



function-[[test_2dcompositeuncovered.source-out ]] -->

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() {

--> --------------------

--> maximum size reached

--> --------------------


Messung V0.5
C=95 H=96 G=95

¤ Dauer der Verarbeitung: 0.32 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

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.