OLD | NEW |
(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> |
OLD | NEW |