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

Side by Side Diff: LayoutTests/fast/canvas/webgl/context-attributes-alpha-depth-stencil-antialias-expected.txt

Issue 290143007: canvas.getContext with alpha:undefined should behave like alpha:true (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: test expectations Created 6 years, 7 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
1 Verify WebGLContextAttributes are working as specified, including alpha, depth, stencil, antialias, but not premultipliedAlpha 1 Verify WebGLContextAttributes are working as specified, including alpha, depth, stencil, antialias, but not premultipliedAlpha
2 2
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ". 3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE ".
4 4
5 PASS successfullyParsed is true 5 PASS successfullyParsed is true
6 6
7 TEST COMPLETE 7 TEST COMPLETE
8 Testing default attributes: { stencil:false } 8 Testing default attributes: { stencil:false }
9 PASS getError was expected value: NO_ERROR : should be no errors 9 PASS getError was expected value: NO_ERROR : should be no errors
10 PASS gl = getWebGL(1, 1, null, [ 0, 0, 0, 0 ], 1, 0) is non-null. 10 PASS gl = getWebGL(1, 1, null, [ 0, 0, 0, 0 ], 1, 0) is non-null.
11 PASS gl.getContextAttributes().stencil is false 11 PASS gl.getContextAttributes().stencil is false
12 PASS gl.getParameter(gl.STENCIL_BITS) == 0 is true 12 PASS gl.getParameter(gl.STENCIL_BITS) == 0 is true
13 Testing alpha = true 13 Testing alpha = true
14 PASS getError was expected value: NO_ERROR : should be no errors 14 PASS getError was expected value: NO_ERROR : should be no errors
15 PASS gl = getWebGL(1, 1, { alpha: true, depth: false, stencil: false, antialias: false }, [ 0, 0, 0, 0 ], 1, 0) is non-null. 15 PASS gl = getWebGL(1, 1, { alpha: alpha, depth: false, stencil: false, antialias : false }, [ 0, 0, 0, 0 ], 1, 0) is non-null.
16 PASS gl.getParameter(gl.ALPHA_BITS) >= 8 is true 16 PASS gl.getParameter(gl.ALPHA_BITS) >= 8 is true
17 PASS gl.getParameter(gl.RED_BITS) >= 8 is true 17 PASS gl.getParameter(gl.RED_BITS) >= 8 is true
18 PASS gl.getParameter(gl.GREEN_BITS) >= 8 is true 18 PASS gl.getParameter(gl.GREEN_BITS) >= 8 is true
19 PASS gl.getParameter(gl.BLUE_BITS) >= 8 is true 19 PASS gl.getParameter(gl.BLUE_BITS) >= 8 is true
20 PASS gl.getParameter(gl.DEPTH_BITS) == 0 is true 20 PASS gl.getParameter(gl.DEPTH_BITS) == 0 is true
21 PASS gl.getParameter(gl.STENCIL_BITS) == 0 is true 21 PASS gl.getParameter(gl.STENCIL_BITS) == 0 is true
22 PASS contextAttribs = gl.getContextAttributes() is non-null. 22 PASS contextAttribs = gl.getContextAttributes() is non-null.
23 PASS contextAttribs.alpha == true is true 23 PASS contextAttribs.alpha == true is true
24 PASS pixel is correctColor 24 PASS pixel is correctColor
25 PASS Math.abs(pixel[0] - 127) <= 1 && Math.abs(pixel[1] - 127) <= 1 && Math.abs( pixel[2] - 127) <= 1 && Math.abs(pixel[3] - 127) <= 1 is true 25 PASS Math.abs(pixel[0] - 127) <= 1 && Math.abs(pixel[1] - 127) <= 1 && Math.abs( pixel[2] - 127) <= 1 && Math.abs(pixel[3] - 127) <= 1 is true
26 Testing alpha = false 26 Testing alpha = false
27 PASS getError was expected value: NO_ERROR : should be no errors 27 PASS getError was expected value: NO_ERROR : should be no errors
28 PASS gl = getWebGL(1, 1, { alpha: false, depth: false, stencil: false, antialias : false }, [ 0, 0, 0, 0 ], 1, 0) is non-null. 28 PASS gl = getWebGL(1, 1, { alpha: false, depth: false, stencil: false, antialias : false }, [ 0, 0, 0, 0 ], 1, 0) is non-null.
29 PASS gl.getParameter(gl.ALPHA_BITS) == 0 is true 29 PASS gl.getParameter(gl.ALPHA_BITS) == 0 is true
30 PASS gl.getParameter(gl.RED_BITS) >= 8 is true 30 PASS gl.getParameter(gl.RED_BITS) >= 8 is true
31 PASS gl.getParameter(gl.GREEN_BITS) >= 8 is true 31 PASS gl.getParameter(gl.GREEN_BITS) >= 8 is true
32 PASS gl.getParameter(gl.BLUE_BITS) >= 8 is true 32 PASS gl.getParameter(gl.BLUE_BITS) >= 8 is true
33 PASS gl.getParameter(gl.DEPTH_BITS) == 0 is true 33 PASS gl.getParameter(gl.DEPTH_BITS) == 0 is true
34 PASS gl.getParameter(gl.STENCIL_BITS) == 0 is true 34 PASS gl.getParameter(gl.STENCIL_BITS) == 0 is true
35 PASS contextAttribs = gl.getContextAttributes() is non-null. 35 PASS contextAttribs = gl.getContextAttributes() is non-null.
36 PASS contextAttribs.alpha == false is true 36 PASS contextAttribs.alpha == false is true
37 PASS pixel is correctColor 37 PASS pixel is correctColor
38 PASS Math.abs(pixel[0] - 127) <= 1 && Math.abs(pixel[1] - 127) <= 1 && Math.abs( pixel[2] - 127) <= 1 && Math.abs(pixel[3] - 127) <= 1 is true 38 PASS Math.abs(pixel[0] - 127) <= 1 && Math.abs(pixel[1] - 127) <= 1 && Math.abs( pixel[2] - 127) <= 1 && Math.abs(pixel[3] - 127) <= 1 is true
39 Testing alpha = undefined
40 PASS getError was expected value: NO_ERROR : should be no errors
41 PASS gl = getWebGL(1, 1, { alpha: alpha, depth: false, stencil: false, antialias : false }, [ 0, 0, 0, 0 ], 1, 0) is non-null.
42 PASS gl.getParameter(gl.ALPHA_BITS) >= 8 is true
43 PASS gl.getParameter(gl.RED_BITS) >= 8 is true
44 PASS gl.getParameter(gl.GREEN_BITS) >= 8 is true
45 PASS gl.getParameter(gl.BLUE_BITS) >= 8 is true
46 PASS gl.getParameter(gl.DEPTH_BITS) == 0 is true
47 PASS gl.getParameter(gl.STENCIL_BITS) == 0 is true
48 PASS contextAttribs = gl.getContextAttributes() is non-null.
49 PASS contextAttribs.alpha == true is true
50 PASS pixel is correctColor
51 PASS Math.abs(pixel[0] - 127) <= 1 && Math.abs(pixel[1] - 127) <= 1 && Math.abs( pixel[2] - 127) <= 1 && Math.abs(pixel[3] - 127) <= 1 is true
52 Testing alpha = null
53 PASS getError was expected value: NO_ERROR : should be no errors
54 PASS gl = getWebGL(1, 1, { alpha: alpha, depth: false, stencil: false, antialias : false }, [ 0, 0, 0, 0 ], 1, 0) is non-null.
55 PASS gl.getParameter(gl.ALPHA_BITS) >= 8 is true
56 PASS gl.getParameter(gl.RED_BITS) >= 8 is true
57 PASS gl.getParameter(gl.GREEN_BITS) >= 8 is true
58 PASS gl.getParameter(gl.BLUE_BITS) >= 8 is true
59 PASS gl.getParameter(gl.DEPTH_BITS) == 0 is true
60 PASS gl.getParameter(gl.STENCIL_BITS) == 0 is true
61 PASS contextAttribs = gl.getContextAttributes() is non-null.
62 PASS contextAttribs.alpha == true is true
63 PASS pixel is correctColor
64 PASS Math.abs(pixel[0] - 127) <= 1 && Math.abs(pixel[1] - 127) <= 1 && Math.abs( pixel[2] - 127) <= 1 && Math.abs(pixel[3] - 127) <= 1 is true
39 Testing depth = true 65 Testing depth = true
40 PASS getError was expected value: NO_ERROR : should be no errors 66 PASS getError was expected value: NO_ERROR : should be no errors
41 PASS gl = getWebGL(1, 1, { stencil: false, antialias: false }, [ 0, 0, 0, 1 ], 1 , 0) is non-null. 67 PASS gl = getWebGL(1, 1, { stencil: false, antialias: false }, [ 0, 0, 0, 1 ], 1 , 0) is non-null.
42 PASS gl.getParameter(gl.DEPTH_BITS) >= 16 is true 68 PASS gl.getParameter(gl.DEPTH_BITS) >= 16 is true
43 PASS gl.getParameter(gl.RED_BITS) >= 8 is true 69 PASS gl.getParameter(gl.RED_BITS) >= 8 is true
44 PASS gl.getParameter(gl.GREEN_BITS) >= 8 is true 70 PASS gl.getParameter(gl.GREEN_BITS) >= 8 is true
45 PASS gl.getParameter(gl.BLUE_BITS) >= 8 is true 71 PASS gl.getParameter(gl.BLUE_BITS) >= 8 is true
46 PASS gl.getParameter(gl.ALPHA_BITS) >= 8 is true 72 PASS gl.getParameter(gl.ALPHA_BITS) >= 8 is true
47 PASS contextAttribs = gl.getContextAttributes() is non-null. 73 PASS contextAttribs = gl.getContextAttributes() is non-null.
48 PASS pixel is correctColor 74 PASS pixel is correctColor
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 PASS pixel[0] != 255 && pixel[0] != 0 is contextAttribs.antialias 139 PASS pixel[0] != 255 && pixel[0] != 0 is contextAttribs.antialias
114 Testing antialias = false 140 Testing antialias = false
115 PASS getError was expected value: NO_ERROR : should be no errors 141 PASS getError was expected value: NO_ERROR : should be no errors
116 PASS gl = getWebGL(2, 2, { depth: false, stencil: false, alpha: false, antialias : false }, [ 0, 0, 0, 1 ], 1, 0) is non-null. 142 PASS gl = getWebGL(2, 2, { depth: false, stencil: false, alpha: false, antialias : false }, [ 0, 0, 0, 1 ], 1, 0) is non-null.
117 PASS contextAttribs = gl.getContextAttributes() is non-null. 143 PASS contextAttribs = gl.getContextAttributes() is non-null.
118 PASS pixel[0] != 255 && pixel[0] != 0 is contextAttribs.antialias 144 PASS pixel[0] != 255 && pixel[0] != 0 is contextAttribs.antialias
119 PASS successfullyParsed is true 145 PASS successfullyParsed is true
120 146
121 TEST COMPLETE 147 TEST COMPLETE
122 148
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698