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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/shadow-huge-blur.html

Issue 2701053003: 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
OLDNEW
1 <!DOCTYPE HTML> 1 <script src="../../resources/testharness.js"></script>
2 <script src="../../resources/testharnessreport.js"></script>
3
2 <body> 4 <body>
3 <script> 5 <script>
4 if (window.testRunner) 6 test(function(t) {
5 testRunner.dumpAsText()
6 7
7 document.body.appendChild(document.createElement("p")).appendChild(document.crea teTextNode("This test passes if it does not cause a crash")); 8 var canvas = document.body.appendChild(document.createElement("canvas"));
8 var canvas = document.body.appendChild(document.createElement("canvas")); 9 canvas.width = "400";
9 canvas.width = "400"; 10 canvas.height = "400";
10 canvas.height = "400"; 11 var ctx = canvas.getContext('2d');
11 var ctx = canvas.getContext('2d'); 12 ctx.shadowBlur = 10500000000;
12 ctx.shadowBlur = 10500000000; 13 ctx.shadowColor = "green";
13 ctx.shadowColor = "green"; 14 ctx.fillRect(0, 0, 10, 10);
14 ctx.fillRect(0, 0, 10, 10); 15
16 }, 'Verify that setting a huge value in shadowBlur does not crash.');
15 </script> 17 </script>
16 </body> 18 </body>
17 19
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698