mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Implement CanvasRenderingContext2d.fillText's "unimplemented" message
This commit is contained in:
parent
1c9c0334ba
commit
2af828485f
6 changed files with 35 additions and 3 deletions
18
tests/html/test_canvas_filltext.html
Normal file
18
tests/html/test_canvas_filltext.html
Normal file
|
@ -0,0 +1,18 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<canvas id="tutorial" style="border:1px solid #d3d3d3"></canvas>
|
||||
<script type="text/javascript">
|
||||
|
||||
canvas = document.getElementById('tutorial');
|
||||
canvas.width = 200;
|
||||
canvas.height = 200;
|
||||
|
||||
var ctx = canvas.getContext('2d');
|
||||
ctx.fillText('Test', 10.0, 10.0);
|
||||
|
||||
ctx.fillText('Test truncated', 30.0, 20.0, 5.0);
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue