Changeset 56886 in webkit
- Timestamp:
- Mar 31, 2010 7:08:59 PM (14 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r56885 r56886 1 2010-03-31 Zhenyao Mo <zmo@google.com> 2 3 Reviewed by Eric Seidel. 4 5 Fix 3 failed tests on Snow Leopard bot from 33416 6 https://bugs.webkit.org/show_bug.cgi?id=36910 7 8 * fast/canvas/webgl/context-attributes-alpha-depth-stencil-antialias-expected.txt: Considering the case where EXT_packed_depth_stencil is unsupported. 9 * fast/canvas/webgl/context-attributes-alpha-depth-stencil-antialias.html: Ditto. 10 * fast/canvas/webgl/context-attributes-expected.txt: Ditto. 11 * fast/canvas/webgl/context-attributes.html: Ditto. 12 * fast/canvas/webgl/gl-get-calls-expected.txt: Ditto. 13 * fast/canvas/webgl/gl-get-calls.html: Ditto. 14 1 15 2010-03-31 Geoffrey Garen <ggaren@apple.com> 2 16 -
trunk/LayoutTests/fast/canvas/webgl/context-attributes-alpha-depth-stencil-antialias-expected.txt
r56872 r56886 44 44 PASS webGL = getWebGL('stencilOn', { depth: false, stencil: true, antialias: false }, [ 0, 0, 0, 1 ], 1, 0) is non-null. 45 45 PASS contextAttribs = webGL.getContextAttributes() is non-null. 46 PASS contextAttribs.depth is true 47 PASS contextAttribs.stencil is true 46 PASS contextAttribs.depth == contextAttribs.stencil is true 48 47 PASS contextAttribs.alpha is true 49 48 PASS contextAttribs.antialias is false … … 53 52 PASS webGL = getWebGL('stencilOff', { depth: false, stencil: false, antialias: false }, [ 0, 0, 0, 1 ], 1, 0) is non-null. 54 53 PASS contextAttribs = webGL.getContextAttributes() is non-null. 55 PASS contextAttribs.depth is false 56 PASS contextAttribs.stencil is false 54 PASS contextAttribs.depth == contextAttribs.stencil is true 57 55 PASS contextAttribs.alpha is true 58 56 PASS contextAttribs.antialias is false -
trunk/LayoutTests/fast/canvas/webgl/context-attributes-alpha-depth-stencil-antialias.html
r56872 r56886 205 205 shouldBeNonNull("webGL = getWebGL('stencilOff', { depth: false, stencil: false, antialias: false }, [ 0, 0, 0, 1 ], 1, 0)"); 206 206 shouldBeNonNull("contextAttribs = webGL.getContextAttributes()"); 207 shouldBe("contextAttribs.depth", (stencil ? "true" : "false"));208 shouldBe("contextAttribs. stencil", (stencil ? "true" : "false"));207 // If EXT_packed_depth_stencil is supported, both depth & stencil will be true; otherwise, both will be false. 208 shouldBe("contextAttribs.depth == contextAttribs.stencil", "true"); 209 209 shouldBe("contextAttribs.alpha", "true"); 210 210 shouldBe("contextAttribs.antialias", "false"); … … 237 237 pixel[3] = buf[3]; 238 238 correctColor = (stencil ? [0, 0, 0, 255] : [255, 0, 0, 255]); 239 // If stencil is requested but not supported, we fake the effect. 240 if (stencil && !contextAttribs.stencil) 241 pixel[0] = 0; 239 242 shouldBe("pixel", "correctColor"); 240 243 } -
trunk/LayoutTests/fast/canvas/webgl/context-attributes-expected.txt
r56872 r56886 8 8 PASS attribs.depth is true 9 9 PASS attribs.alpha is true 10 PASS attribs.stencil is true10 PASS attribs.stencil == true || attribs.stencil == false is true 11 11 PASS attribs.antialias == true || attribs.antialias == false is true 12 12 PASS attribs.premultipliedAlpha is true … … 22 22 PASS context = create3DContext({ depth: false, stencil: true, antialias: false }) is non-null. 23 23 PASS attribs = context.getContextAttributes() is non-null. 24 PASS attribs.depth is true24 PASS attribs.depth == attribs.stencil is true 25 25 PASS attribs.alpha is true 26 PASS attribs.stencil is true27 26 PASS attribs.antialias is false 28 27 PASS attribs.premultipliedAlpha is true … … 32 31 PASS attribs.depth is true 33 32 PASS attribs.alpha is true 34 PASS attribs.stencil is true33 PASS attribs.stencil == true || attribs.stencil == false is true 35 34 PASS attribs.antialias is false 36 35 PASS attribs.premultipliedAlpha is true -
trunk/LayoutTests/fast/canvas/webgl/context-attributes.html
r56872 r56886 19 19 shouldBe("attribs.depth", "true"); 20 20 shouldBe("attribs.alpha", "true"); 21 shouldBe("attribs.stencil ", "true");21 shouldBe("attribs.stencil == true || attribs.stencil == false", "true"); 22 22 // Antialias is requested by default, but might or might not be supported. 23 23 shouldBe("attribs.antialias == true || attribs.antialias == false", "true"); … … 34 34 35 35 debug("Test customized values"); 36 // (stencil == true && depth == false) is not supported, default depth to true 36 // (stencil == true && depth == false) is not supported. 37 // Default depth to true if EXT_packed_depth_stencil is supported. 38 // Otherwise, both depth and stencil should be false. 37 39 shouldBeNonNull("context = create3DContext({ depth: false, stencil: true, antialias: false })"); 38 40 shouldBeNonNull("attribs = context.getContextAttributes()"); 39 shouldBe("attribs.depth ", "true");41 shouldBe("attribs.depth == attribs.stencil", "true"); 40 42 shouldBe("attribs.alpha", "true"); 41 shouldBe("attribs.stencil", "true");42 43 shouldBe("attribs.antialias", "false"); 43 44 shouldBe("attribs.premultipliedAlpha", "true"); … … 49 50 shouldBe("attribs.depth", "true"); 50 51 shouldBe("attribs.alpha", "true"); 51 shouldBe("attribs.stencil ", "true");52 shouldBe("attribs.stencil == true || attribs.stencil == false", "true"); 52 53 shouldBe("attribs.antialias", "false"); 53 54 shouldBe("attribs.premultipliedAlpha", "true"); -
trunk/LayoutTests/fast/canvas/webgl/gl-get-calls-expected.txt
r56872 r56886 54 54 PASS context.getParameter(context.STENCIL_BACK_PASS_DEPTH_PASS) is context.KEEP 55 55 PASS context.getParameter(context.STENCIL_BACK_REF) is 0 56 PASS context.getParameter(context.STENCIL_BITS) > 0 is true56 PASS context.getParameter(context.STENCIL_BITS) >= 0 is true 57 57 PASS context.getParameter(context.STENCIL_CLEAR_VALUE) is 0 58 58 PASS context.getParameter(context.STENCIL_FAIL) is context.KEEP -
trunk/LayoutTests/fast/canvas/webgl/gl-get-calls.html
r56872 r56886 83 83 //shouldBe('context.getParameter(context.STENCIL_BACK_VALUE_MASK)', '0xFFFFFFFF'); 84 84 //shouldBe('context.getParameter(context.STENCIL_BACK_WRITEMASK)', '0xFFFFFFFF'); 85 shouldBe('context.getParameter(context.STENCIL_BITS) > 0', 'true'); 85 // If EXT_packed_depth_stencil is supported, STENCIL_BITS > 0; otherwise, STENCIL_BITS == 0. 86 shouldBe('context.getParameter(context.STENCIL_BITS) >= 0', 'true'); 86 87 shouldBe('context.getParameter(context.STENCIL_CLEAR_VALUE)', '0'); 87 88 shouldBe('context.getParameter(context.STENCIL_FAIL)', 'context.KEEP');
Note: See TracChangeset
for help on using the changeset viewer.