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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/access-zero-sized-canvas.html

Issue 2671853004: Use testharness.js instead of js-test.js in LayoutTests/fast/canvas tests. (Closed)
Patch Set: Corrections 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 | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/access-zero-sized-canvas-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 This test ensures that accessing the context of a zero sized canvas does not cra sh. 1 <html>
2 <canvas id="canvas" width="0" height="0"></canvas><br /> 2 <head>
3 <script src="../../resources/testharness.js"></script>
4 <script src="../../resources/testharnessreport.js"></script>
5 </head>
6 <canvas id="canvas" width="0" height="0"></canvas>
7 <body>
3 <script> 8 <script>
4 if (window.testRunner) 9 test(function(t) {
5 testRunner.dumpAsText(); 10 var context = document.getElementById("canvas").getContext("2d");
11 context.fillStyle = "green";
12 }, 'This test ensures that accessing the context of a zero sized canvas does not crash.');
13 </script>
14 </body>
15 </html>
6 16
7 var context = document.getElementById("canvas").getContext("2d");
8 context.fillStyle = "green";
9
10 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/access-zero-sized-canvas-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698