|
|
@ -656,7 +656,7 @@ tests['textBaseline hanging'] = function(ctx){ |
|
|
|
ctx.fillText("hanging", 100, 100); |
|
|
|
}; |
|
|
|
|
|
|
|
tests['textBaseline bottom'] = function(ctx){ |
|
|
|
tests['textBaseline middle'] = function(ctx){ |
|
|
|
ctx.strokeStyle = '#666'; |
|
|
|
ctx.strokeRect(0,0,200,200); |
|
|
|
ctx.lineTo(0,100); |
|
|
@ -664,9 +664,9 @@ tests['textBaseline bottom'] = function(ctx){ |
|
|
|
ctx.stroke(); |
|
|
|
|
|
|
|
ctx.font = 'normal 20px Arial'; |
|
|
|
ctx.textBaseline = 'bottom'; |
|
|
|
ctx.textBaseline = 'middle'; |
|
|
|
ctx.textAlign = 'center'; |
|
|
|
ctx.fillText("bottom", 100, 100); |
|
|
|
ctx.fillText("middle", 100, 100); |
|
|
|
}; |
|
|
|
|
|
|
|
tests['textBaseline ideographic'] = function(ctx){ |
|
|
@ -682,6 +682,19 @@ tests['textBaseline ideographic'] = function(ctx){ |
|
|
|
ctx.fillText("ideographic", 100, 100); |
|
|
|
}; |
|
|
|
|
|
|
|
tests['textBaseline bottom'] = function(ctx){ |
|
|
|
ctx.strokeStyle = '#666'; |
|
|
|
ctx.strokeRect(0,0,200,200); |
|
|
|
ctx.lineTo(0,100); |
|
|
|
ctx.lineTo(200,100); |
|
|
|
ctx.stroke(); |
|
|
|
|
|
|
|
ctx.font = 'normal 20px Arial'; |
|
|
|
ctx.textBaseline = 'bottom'; |
|
|
|
ctx.textAlign = 'center'; |
|
|
|
ctx.fillText("bottom", 100, 100); |
|
|
|
}; |
|
|
|
|
|
|
|
tests['font size px'] = function(ctx){ |
|
|
|
ctx.strokeStyle = '#666'; |
|
|
|
ctx.strokeRect(0,0,200,200); |
|
|
|