blob: 21400d571e00ed5bd36fcac5184557783abb2cfd [file] [log] [blame]
<!DOCTYPE html>
<div>Test passes if it does not crash.</div>
<script src="../tests.js"></script>
<style>
@font-face {
font-family: CanvasTest;
src: url("does_not_exist.ttf");
}
</style>
<applet>
<canvas id="c">
</applet>
<ul id="d"></ul>
<script>
if (window.testRunner)
testRunner.dumpAsText();
_addTest(function(canvas, ctx) {
ctx.fillRect(0, 0, 100, 50);
ctx.font = '1px CanvasTest';
ctx.fillText('AA', 0, 50);
deferTest();
setTimeout(wrapFunction(function () {
ctx.fillText('AA', 0, 50);
if (window.testRunner)
testRunner.notifyDone();
}), 500);
});
</script>