Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / PerformanceTests / Canvas / setFontAndMeasureTextSingleFont.html
blob11f8bcc4fd8060317349099514fed235307911d4
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../resources/runner.js"></script>
5 <script>
7 var canvas = document.createElement("canvas");
8 var ctx = canvas.getContext("2d");
9 var font1 = "bold 15px Arial";
11 function doTest() {
12 ctx.font = font1;
13 ctx.measureText("a");
16 // Warm up the caches
17 doTest();
19 PerfTestRunner.measureRunsPerSecond({
20 description: "Measures performance of setting the current font and measuring text using the same font over and over.",
21 run: doTest
22 });
23 </script>
24 </body>
25 </html>