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

        oContext2d = document.getCSSCanvasContext("2d","",0,0);
        oContext2d.font = "small-caps .0ex G";
        oContext2d.font = "italic .0ex G";
        oContext2d.font = "italic 400 .0ex G";
        oContext2d.font = "italic 400 small/.0ex G";
    </script>
</head>
<body>
<p>Test for bug <a href="https://bugs.webkit.org/show_bug.cgi?id=66291">66291</a>: Crash because CSSPrimitiveValue::computeLengthDouble assumes fontMetrics are available</p>
<p>This test passed as it did not crash.</p>