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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/canvas/OffscreenCanvas-ImageBitmapSource.html

Issue 2570613002: Add OffscreenCanvas to ImageBitmapSource union typedef (Closed)
Patch Set: build fix Created 4 years 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/canvas-createImageBitmap-invalid-args-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
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script>
5 async_test(t => {
6 var offscreen = new OffscreenCanvas(50, 50);
7 var ctx = offscreen.getContext('2d');
8 ctx.fillStyle = '#0f0';
9 ctx.fillRect(0, 0, 50, 50);
10 createImageBitmap(offscreen).then(image => {
11 var output = new OffscreenCanvas(50, 50);
12 var outCtx = offscreen.getContext('2d');
13 outCtx.drawImage(image, 0, 0);
14 var pixel = outCtx.getImageData(0, 0, 1, 1).data;
15 t.step(function() {
16 assert_array_equals(pixel, [0, 255, 0, 255]);
17 });
18 t.done();
19 });
20 }, "Call createImageBitmap on OffscreenCanvas with 2D context");
21 </script>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/canvas/canvas-createImageBitmap-invalid-args-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698