| Index: third_party/WebKit/LayoutTests/fast/canvas/canvas-font-consistency.html
|
| diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-font-consistency.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-font-consistency.html
|
| index aa84149bf8986d860529bfe42dcf684abb2a4746..b88b342acd07f3410b7ba641c22fbe608e748150 100644
|
| --- a/third_party/WebKit/LayoutTests/fast/canvas/canvas-font-consistency.html
|
| +++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-font-consistency.html
|
| @@ -1,9 +1,21 @@
|
| -<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
|
| -<html>
|
| -<head>
|
| -<script src="../../resources/js-test.js"></script>
|
| -</head>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| <body>
|
| -<script src="script-tests/canvas-font-consistency.js"></script>
|
| +<script>
|
| +test(function(t) {
|
| +
|
| + var canvas = document.createElement('canvas');
|
| + var ctx = canvas.getContext('2d');
|
| + var fontNames = ["bold 13px Arial",
|
| + "italic 13px Arial",
|
| + "small-caps 13px Arial"];
|
| +
|
| + for (var i = 0; i < fontNames.length; i++) {
|
| + var fontName = fontNames[i];
|
| + ctx.font = fontName;
|
| + assert_equals(ctx.font, fontName);
|
| + }
|
| +}, 'Series of tests to ensure that context.font is consistent.');
|
| +</script>
|
| </body>
|
| </html>
|
|
|