Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1122)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-font-consistency.html

Issue 2676493005: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: Addressing comments Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <script src="../../resources/testharness.js"></script>
2 <html> 2 <script src="../../resources/testharnessreport.js"></script>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body> 3 <body>
7 <script src="script-tests/canvas-font-consistency.js"></script> 4 <script>
5 test(function(t) {
6
7 var canvas = document.createElement('canvas');
8 var ctx = canvas.getContext('2d');
9 var fontNames = ["bold 13px Arial",
10 "italic 13px Arial",
11 "small-caps 13px Arial"];
12
13 for (var i = 0; i < fontNames.length; i++) {
14 var fontName = fontNames[i];
15 ctx.font = fontName;
16 assert_equals(ctx.font, fontName);
17 }
18
19 }, 'Series of tests to ensure that context.font is consistent.');
20 </script>
8 </body> 21 </body>
9 </html> 22 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698