Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 importScripts("../../resources/testharness.js"); | |
|
fs
2016/08/25 08:14:58
Could possibly put this file in a resources/ or sc
| |
| 2 test(function() { | |
| 3 var aCanvas = new OffscreenCanvas(50, 50); | |
| 4 var bCanvas = new OffscreenCanvas(50, 50); | |
| 5 var ctx1 = aCanvas.getContext('2d'); | |
| 6 var ctx2 = bCanvas.getContext('webgl'); | |
| 7 assert_true(ctx1 instanceof OffscreenCanvasRenderingContext2D); | |
| 8 assert_true(ctx2 instanceof WebGLRenderingContext); | |
| 9 }); | |
| 10 done(); | |
| OLD | NEW |