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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-font-consistency.js

Issue 2676493005: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: 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
(Empty)
1 descriptionQuiet("Series of tests to ensure that context.font is consistent.");
2
3 var canvas = document.createElement('canvas');
4 var ctx = canvas.getContext('2d');
5 var fontNames = ["bold 13px Arial",
6 "italic 13px Arial",
7 "small-caps 13px Arial"];
8
9 for (var i = 0; i < fontNames.length; i++) {
10 var fontName = fontNames[i];
11 debug('Testing font "' + fontName + '"');
12 ctx.font = fontName;
13 shouldBe("ctx.font", "fontName");
14 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698