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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-blob-in-workers.html

Issue 2189733003: Remove virtual test suits virtual/threaded/fast/canvas-toBlob (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../../resources/js-test.js"></script> 4 <script src="../../resources/js-test.js"></script>
5 </head> 5 </head>
6 <body> 6 <body>
7 <script> 7 <script>
8 jsTestIsAsync = true; 8 jsTestIsAsync = true;
9 var worker = new Worker('../../../../fast/canvas/resources/canvas-createImageBit map-blob-in-workers.js'); 9 var worker = new Worker('../../fast/canvas/resources/canvas-createImageBitmap-bl ob-in-workers.js');
10 10
11 description('Test race condition for createImageBitmap from blob in workers and main.'); 11 description('Test race condition for createImageBitmap from blob in workers and main.');
12 12
13 var imgWidth = 20; 13 var imgWidth = 20;
14 var imgHeight = 20; 14 var imgHeight = 20;
15 var numOfBitmaps = 5; 15 var numOfBitmaps = 5;
16 var bitmapArray = []; 16 var bitmapArray = [];
17 17
18 var canvas1 = document.createElement("canvas"); 18 var canvas1 = document.createElement("canvas");
19 var ctx1 = canvas1.getContext("2d"); 19 var ctx1 = canvas1.getContext("2d");
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 ctx3.drawImage(imageBitmapFromWorker, 0, 0, imgWidth, imgHeight); 81 ctx3.drawImage(imageBitmapFromWorker, 0, 0, imgWidth, imgHeight);
82 var imageData = ctx3.getImageData(0, 0, imgWidth, imgHeight).data; 82 var imageData = ctx3.getImageData(0, 0, imgWidth, imgHeight).data;
83 compareImageData(imageData, imageDataFromImg); 83 compareImageData(imageData, imageDataFromImg);
84 testPassed("ImageBitmaps created from blob in worker and in main have the sa me pixel data"); 84 testPassed("ImageBitmaps created from blob in worker and in main have the sa me pixel data");
85 finishJSTest(); 85 finishJSTest();
86 }); 86 });
87 87
88 </script> 88 </script>
89 </body> 89 </body>
90 </html> 90 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698