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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/invalid-set-font-crash.html

Issue 2703803002: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: Addressing comments Created 3 years, 9 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 <html> 1 <script src="../../resources/testharness.js"></script>
2 <head> 2 <script src="../../resources/testharnessreport.js"></script>
3 <script type="text/javascript">
4 if (window.testRunner)
5 testRunner.dumpAsText();
6 3
7 function init() 4 <script>
8 { 5 function runTest()
9 var ctx = document.getElementById("canvas").getContext("2d"); 6 {
10 ctx.font = "font-family: Helvetica; font-size: 48pt; font-color: #000000 "; 7 var ctx = document.createElement("canvas").getContext("2d");
11 ctx.fillText("Hello world", 10, 200); 8 ctx.font = "font-family: Helvetica; font-size: 48pt; font-color: #000000";
9 ctx.fillText("Hello world", 10, 200);
10 }
11
12 async_test(t => {
13 window.onload = function() {
14 t.step(runTest);
15 t.done();
12 } 16 }
13 </script> 17 }, 'Verify that setting the font does not crash.');
14 </head> 18 </script>
15 <body onload="init()">
16 <p>This test should not crash.</p>
17 <canvas id="canvas" height="300" width="300"></canvas>
18 </body>
19 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698