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

Side by Side Diff: LayoutTests/fast/canvas/webgl/draw-webgl-to-canvas-2d-expected.txt

Issue 655133003: Fix a broken WebGL layout test by using testRunner.displayAsyncThen(). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use requestAnimationFrame instead of setTimeout Created 6 years, 2 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
« no previous file with comments | « LayoutTests/fast/canvas/webgl/draw-webgl-to-canvas-2d.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 PASS successfullyParsed is true 1 PASS successfullyParsed is true
2 2
3 TEST COMPLETE 3 TEST COMPLETE
4 Check for drawing webgl to canvas 2d on the same frame. 4 Check for drawing webgl to canvas 2d on the same frame.
5 1) when drawingBuffer is preserved. 5 1) when drawingBuffer is preserved.
6 PASS imgdata[0] is 255 6 PASS imgdata[0] is 255
7 PASS imgdata[1] is 0 7 PASS imgdata[1] is 0
8 PASS imgdata[2] is 0 8 PASS imgdata[2] is 0
9 PASS imgdata[0] is 0 9 PASS imgdata[0] is 0
10 PASS imgdata[1] is 255 10 PASS imgdata[1] is 255
(...skipping 10 matching lines...) Expand all
21 PASS imgdata[0] is 255 21 PASS imgdata[0] is 255
22 PASS imgdata[1] is 0 22 PASS imgdata[1] is 0
23 PASS imgdata[2] is 0 23 PASS imgdata[2] is 0
24 PASS imgdata[0] is 0 24 PASS imgdata[0] is 0
25 PASS imgdata[1] is 255 25 PASS imgdata[1] is 255
26 PASS imgdata[2] is 0 26 PASS imgdata[2] is 0
27 2) when drawingBuffer is not preserved. It leads to undefined behavior. 27 2) when drawingBuffer is not preserved. It leads to undefined behavior.
28 PASS imgdata[0] is 255 28 PASS imgdata[0] is 255
29 PASS imgdata[1] is 0 29 PASS imgdata[1] is 0
30 PASS imgdata[2] is 0 30 PASS imgdata[2] is 0
31 FAIL imgdata[0] should be 255. Was 0. 31 PASS imgdata[0] is 255
32 FAIL imgdata[1] should be 0. Was 255. 32 PASS imgdata[1] is 0
33 PASS imgdata[2] is 0 33 PASS imgdata[2] is 0
34 This test checks for drawing webgl to canvas 2d. The test process is as follows: 1. draw a green rect on a webgl context. 2. draw a red rect on a canvas 2d cont ext, and check a pixel (should be red). 3. draw the webgl contents on the canvas 2d context, and check a pixel (should be green). 4. wait for few frames. 5. dra w a red rect on the canvas 2d context, and check a pixel (should be red). 6. dra w the webgl contents on the canvas 2d context, and check a pixel (see below expl anation). Above test is executed for both preserve and non-preserve webgl contex ts. For the preserve webgl context, the pixel on #6 is green. For the non-preser ve webgl context, the pixel on #6 is undefined.[1] [1] http://www.khronos.org/re gistry/webgl/specs/latest/1.0/. "This default behavior can be changed by setting the preserveDrawingBuffer attribute of the WebGLContextAttributes object. If th is flag is true, the contents of the drawing buffer shall be preserved until the author either clears or overwrites them. If this flag is false, attempting to p erform operations using this context as a source image after the rendering funct ion has returned can lead to undefined behavior.". 34 This test checks for drawing webgl to canvas 2d. The test process is as follows: 1. draw a green rect on a webgl context. 2. draw a red rect on a canvas 2d cont ext, and check a pixel (should be red). 3. draw the webgl contents on the canvas 2d context, and check a pixel (should be green). 4. wait for few frames. 5. dra w a red rect on the canvas 2d context, and check a pixel (should be red). 6. dra w the webgl contents on the canvas 2d context, and check a pixel (see below expl anation). Above test is executed for both preserve and non-preserve webgl contex ts. For the preserve webgl context, the pixel on #6 is green. For the non-preser ve webgl context, the pixel on #6 is undefined.[1] [1] http://www.khronos.org/re gistry/webgl/specs/latest/1.0/. "This default behavior can be changed by setting the preserveDrawingBuffer attribute of the WebGLContextAttributes object. If th is flag is true, the contents of the drawing buffer shall be preserved until the author either clears or overwrites them. If this flag is false, attempting to p erform operations using this context as a source image after the rendering funct ion has returned can lead to undefined behavior.".
OLDNEW
« no previous file with comments | « LayoutTests/fast/canvas/webgl/draw-webgl-to-canvas-2d.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698