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

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

Issue 2594843002: Implementing promise-based commit for driving OffscreenCanvas animations (Closed)
Patch Set: rebase Created 3 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
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <script>
5 promise_test(t => {
6 var canvas = document.createElement('canvas');
7 var offscreen = canvas.transferControlToOffscreen();
8 var ctx = offscreen.getContext('2d');
9 return ctx.commit();
10 }, "Verify that the promise returned by a 2d context's commit() gets resolved.") ;
11
12 promise_test(t => {
13 var canvas = document.createElement('canvas');
14 var offscreen = canvas.transferControlToOffscreen();
15 var ctx = offscreen.getContext('webgl');
16 return ctx.commit();
17 }, "Verify that the promise returned by a webgl context's commit gets resolved." );
18
19 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698