1 PASS successfullyParsed is true
4 Check for drawing webgl to canvas 2d on the same frame.
5 1) when drawingBuffer is preserved.
10 PASS imgdata[1] is 255
12 2) when drawingBuffer is not preserved.
13 PASS imgdata[0] is 255
17 PASS imgdata[1] is 255
19 Check for drawing webgl to canvas 2d several frames after drawing webgl contents.
20 1) when drawingBuffer is preserved.
21 PASS imgdata[0] is 255
25 PASS imgdata[1] is 255
27 2) when drawingBuffer is not preserved. It leads to undefined behavior.
28 PASS imgdata[0] is 255
31 PASS imgdata[0] is 255
34 Everything is same to draw-webgl-to-canvas-2d.html except for calling redundant toDataURL(). Canvas spec allows to call toDataURL() without a context. Some bad things can happen if we call toDataURL() without a context and then create a context and then call toDataURL() again.