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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-toBlob-defaultpng.html

Issue 1614173002: Removal all idle-task implementations in toBlob (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased with master Created 4 years, 11 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 <script src = "../../../resources/js-test.js"></script> 1 <script src = "../../resources/js-test.js"></script>
2 <script type = 'text/javascript'> 2 <script type = 'text/javascript'>
3 jsTestIsAsync = true; 3 jsTestIsAsync = true;
4 description("Test that verifies whether the image data survives the toBlob proce ss after async image encoding"); 4 description("Test that verifies whether the image data survives the toBlob proce ss after async image encoding");
5 5
6 if (window.testRunner) { 6 if (window.testRunner) {
7 testRunner.dumpAsText();
7 testRunner.waitUntilDone(); 8 testRunner.waitUntilDone();
8 } 9 }
9 10
10 var canvas = document.createElement("canvas"); 11 var canvas = document.createElement("canvas");
11 var ctx = canvas.getContext("2d"); 12 var ctx = canvas.getContext("2d");
12 ctx.fillStyle = "#FF0000"; 13 ctx.fillStyle = "#FF0000";
13 ctx.fillRect(0, 0, 150, 75); 14 ctx.fillRect(0, 0, 150, 75);
14 var canvas2 = document.createElement("canvas"); 15 var canvas2 = document.createElement("canvas");
15 var ctx2 = canvas2.getContext("2d"); 16 var ctx2 = canvas2.getContext("2d");
16 17
(...skipping 20 matching lines...) Expand all
37 38
38 finishJSTest(); 39 finishJSTest();
39 } 40 }
40 41
41 canvas.toBlob(function(blob) { 42 canvas.toBlob(function(blob) {
42 url = URL.createObjectURL(blob); 43 url = URL.createObjectURL(blob);
43 newImg.src = url; 44 newImg.src = url;
44 }); 45 });
45 46
46 </script> 47 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698