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

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

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
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-ex-units-crash.js"></script> 4 <script>
5 test(function(t) {
6
7 ctx = document.createElement('canvas').getContext('2d');
Justin Novosad 2017/02/03 18:39:32 indent
zakerinasab 2017/02/09 18:11:03 Done.
8
9 ctx.font = "5ex sans-serif";
10
11 size = parseInt(ctx.font.substr(0, 2));
12 family = ctx.font.substr(5);
13
14 assert_approx_equals(size, 25, 10);
15 assert_equals(family, 'sans-serif');
16
17 }, "Test that setting a font with size in 'ex' units doesn't crash.");
18 </script>
8 </body> 19 </body>
9 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698