Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / canvas / crash-set-font.html
blobd1dcb74e9c59d176cad05af62d90fca0daf521ee
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 if (window.testRunner)
6 testRunner.dumpAsText();
8 oContext2d = document.getCSSCanvasContext("2d","",0,0);
9 oContext2d.font = "small-caps .0ex G";
10 oContext2d.font = "italic .0ex G";
11 oContext2d.font = "italic 400 .0ex G";
12 oContext2d.font = "italic 400 small/.0ex G";
13 </script>
14 </head>
15 <body>
16 <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>
17 <p>This test passed as it did not crash.</p>