Changeset 127236 in webkit
- Timestamp:
- Aug 31, 2012 12:36:34 AM (12 years ago)
- Location:
- trunk/LayoutTests
- Files:
-
- 1 added
- 2 edited
- 2 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r127235 r127236 1 2012-08-31 Andrey Adaikin <aandrey@chromium.org> 2 3 [Qt] New inspector/profiler/webgl-profiler-api-changes.html times out 4 https://bugs.webkit.org/show_bug.cgi?id=95183 5 6 Reviewed by Yury Semikhatsky. 7 8 Move inspector WebGL test(s) to its own folder so that they are easy to blacklist. Skip them for QT where WebGL is disabled at the moment. 9 Drive-by: make the test fail instead of timing out when WebGL is disabled. 10 11 * inspector/profiler/webgl/webgl-profiler-api-changes-expected.txt: Renamed from LayoutTests/inspector/profiler/webgl-profiler-api-changes-expected.txt. 12 * inspector/profiler/webgl/webgl-profiler-api-changes.html: Renamed from LayoutTests/inspector/profiler/webgl-profiler-api-changes.html. 13 * platform/qt/Skipped: 14 1 15 2012-08-31 Yoshifumi Inoue <yosin@chromium.org> 2 16 -
trunk/LayoutTests/inspector/profiler/webgl/webgl-profiler-api-changes.html
r127235 r127236 1 1 <html> 2 2 <head> 3 <script src="../../ http/tests/inspector/inspector-test.js"></script>3 <script src="../../../http/tests/inspector/inspector-test.js"></script> 4 4 <script> 5 6 if (window.testRunner) {7 testRunner.overridePreference("WebKitWebGLEnabled", "1");8 testRunner.dumpAsText();9 testRunner.waitUntilDone();10 }11 5 12 6 function wasError(gl) … … 18 12 } 19 13 20 21 22 23 24 25 26 27 28 29 30 31 32 33 14 function createWebGLContext() 15 { 16 var canvas = document.createElement("canvas"); 17 var contextIds = ["experimental-webgl", "webkit-3d", "3d"]; 18 for (var i = 0, contextId; contextId = contextIds[i]; ++i) { 19 var gl = canvas.getContext(contextId); 20 if (gl) 21 return gl; 22 } 23 output("ERROR: Could not create a WebGL context."); 24 return null; 25 } 26 27 WebGLRenderingContextResource = {}; 34 28 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 29 /** 30 * @const 31 * @type {Array.<string>} 32 */ 33 WebGLRenderingContextResource.GLCapabilities = [ 34 "BLEND", 35 "CULL_FACE", 36 "DEPTH_TEST", 37 "DITHER", 38 "POLYGON_OFFSET_FILL", 39 "SAMPLE_ALPHA_TO_COVERAGE", 40 "SAMPLE_COVERAGE", 41 "SCISSOR_TEST", 42 "STENCIL_TEST" 43 ]; 44 45 /** 46 * @const 47 * @type {Array.<string>} 48 */ 49 WebGLRenderingContextResource.PixelStoreParameters = [ 50 "PACK_ALIGNMENT", 51 "UNPACK_ALIGNMENT", 52 "UNPACK_COLORSPACE_CONVERSION_WEBGL", 53 "UNPACK_FLIP_Y_WEBGL", 54 "UNPACK_PREMULTIPLY_ALPHA_WEBGL" 55 ]; 56 57 /** 58 * @const 59 * @type {Array.<string>} 60 */ 61 WebGLRenderingContextResource.StateParameters = [ 62 "ACTIVE_TEXTURE", 63 "ARRAY_BUFFER_BINDING", 64 "BLEND_COLOR", 65 "BLEND_DST_ALPHA", 66 "BLEND_DST_RGB", 67 "BLEND_EQUATION_ALPHA", 68 "BLEND_EQUATION_RGB", 69 "BLEND_SRC_ALPHA", 70 "BLEND_SRC_RGB", 71 "COLOR_CLEAR_VALUE", 72 "COLOR_WRITEMASK", 73 "CULL_FACE_MODE", 74 "CURRENT_PROGRAM", 75 "DEPTH_CLEAR_VALUE", 76 "DEPTH_FUNC", 77 "DEPTH_RANGE", 78 "DEPTH_WRITEMASK", 79 "ELEMENT_ARRAY_BUFFER_BINDING", 80 "FRAMEBUFFER_BINDING", 81 "FRONT_FACE", 82 "GENERATE_MIPMAP_HINT", 83 "LINE_WIDTH", 84 "PACK_ALIGNMENT", 85 "POLYGON_OFFSET_FACTOR", 86 "POLYGON_OFFSET_UNITS", 87 "RENDERBUFFER_BINDING", 88 "SAMPLE_COVERAGE_INVERT", 89 "SAMPLE_COVERAGE_VALUE", 90 "SCISSOR_BOX", 91 "STENCIL_BACK_FAIL", 92 "STENCIL_BACK_FUNC", 93 "STENCIL_BACK_PASS_DEPTH_FAIL", 94 "STENCIL_BACK_PASS_DEPTH_PASS", 95 "STENCIL_BACK_REF", 96 "STENCIL_BACK_VALUE_MASK", 97 "STENCIL_BACK_WRITEMASK", 98 "STENCIL_CLEAR_VALUE", 99 "STENCIL_FAIL", 100 "STENCIL_FUNC", 101 "STENCIL_PASS_DEPTH_FAIL", 102 "STENCIL_PASS_DEPTH_PASS", 103 "STENCIL_REF", 104 "STENCIL_VALUE_MASK", 105 "STENCIL_WRITEMASK", 106 "UNPACK_ALIGNMENT", 107 "UNPACK_COLORSPACE_CONVERSION_WEBGL", 108 "UNPACK_FLIP_Y_WEBGL", 109 "UNPACK_PREMULTIPLY_ALPHA_WEBGL", 110 "VIEWPORT" 111 ]; 112 113 WebGLRenderingContextResource.TextureBindings = [ 114 "TEXTURE_BINDING_2D", 115 "TEXTURE_BINDING_CUBE_MAP" 116 ]; 117 118 function test() 125 119 { 126 120 var gl = createWebGLContext(); 121 if (!gl) 122 return; 127 123 128 124 var constantNames = []; … … 196 192 output(property); 197 193 }); 198 199 if (window.testRunner) 200 testRunner.notifyDone(); 194 } 195 196 function runTest() 197 { 198 if (window.testRunner) { 199 testRunner.overridePreference("WebKitWebGLEnabled", "1"); 200 testRunner.dumpAsText(); 201 testRunner.waitUntilDone(); 202 } 203 try { 204 test(); 205 } finally { 206 if (window.testRunner) 207 testRunner.notifyDone(); 208 } 201 209 } 202 210 203 211 </script> 204 212 </head> 205 <body onload=" test()">213 <body onload="runTest()"> 206 214 <p> 207 215 Test to catch WebGL API changes. -
trunk/LayoutTests/platform/qt/Skipped
r127120 r127236 138 138 http/tests/security/webgl-remote-read-remote-image-allowed-with-credentials.html 139 139 http/tests/security/webgl-remote-read-remote-image-blocked-no-crossorigin.html 140 inspector/profiler/webgl 140 141 141 142 # ENABLE(LINK_PREFETCH) is disabled. … … 2764 2765 http/tests/inspector/csp-inline-warning-contains-stacktrace.html 2765 2766 2766 # [Qt] New inspector/profiler/webgl-profiler-api-changes.html times out2767 # https://bugs.webkit.org/show_bug.cgi?id=951832768 inspector/profiler/webgl-profiler-api-changes.html2769 2770 2767 # [Qt] New svg/custom/clamped-masking-clipping.svg asserts 2771 2768 # https://bugs.webkit.org/show_bug.cgi?id=95431
Note: See TracChangeset
for help on using the changeset viewer.