summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/canvas/draw-text-crash.html
blob: 24fa1e7d0098544dfcf580eca1b95d45299744dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!DOCTYPE html>
<script>
if (window.testRunner)
    testRunner.dumpAsText();

function eventhandler1() {
    document.querySelector("canvas").width = 2;
}
function eventhandler2() {
    var canvas = document.querySelector("canvas");
    var context = canvas.getContext("2d");
    context.fillText("clipPathUnits", 0, 0);
}
</script>
This test passes if it doesn't crash under ASAN.
<strong onfocusin="eventhandler1()"><textarea autofocus></textarea>
<canvas><iframe onbeforeload="eventhandler2()">