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

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

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
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-font-consistency.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 description("Test that setting a font with size in 'ex' units doesn't crash.");
2
3 ctx = document.createElement('canvas').getContext('2d');
4
5 ctx.font = "5ex sans-serif";
6
7 size = parseInt(ctx.font.substr(0, 2));
8 family = ctx.font.substr(5);
9
10 shouldBeCloseTo("size", 25, 10);
11 shouldBe("family", "'sans-serif'");
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/fast/canvas/script-tests/canvas-font-consistency.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698