Backed out changeset 7272b7396c78 (bug 1932758) for causing fenix debug failures...
[gecko.git] / dom / canvas / test / webgl-conf / checkout / conformance2 / textures / misc / copy-texture-cube-map-bug.html
blob77a811cdaadaeb217361b075930a0e28399ed743
1 <!--
2 Copyright (c) 2019 The Khronos Group Inc.
3 Use of this source code is governed by an MIT-style license that can be
4 found in the LICENSE.txt file.
5 -->
7 <!DOCTYPE html>
8 <html>
9 <head>
10 <meta charset="utf-8">
11 <title>WebGL copy into cube map texture bug conformance test</title>
12 <link rel="stylesheet" href="../../../resources/js-test-style.css"/>
13 <script src="../../../js/js-test-pre.js"></script>
14 <script src="../../../js/webgl-test-utils.js"></script>
15 </head>
16 <body>
17 <div id="description"></div>
18 <div id="console"></div>
19 <canvas id="canvas" width="1024" height="1024"></canvas>
20 <script>
21 "use strict";
22 var wtu = WebGLTestUtils;
23 var gl;
25 function runTest() {
26 var buffer = gl.createBuffer();
27 gl.bindBuffer(gl.PIXEL_UNPACK_BUFFER, buffer);
28 gl.pixelStorei(gl.UNPACK_ROW_LENGTH,5);
30 var texture = gl.createTexture();
31 gl.bindTexture(gl.TEXTURE_CUBE_MAP, texture);
32 gl.copyTexImage2D(gl.TEXTURE_CUBE_MAP_NEGATIVE_Z, 5, gl.RGBA, 75, 10, 2, 2, 0);
33 // Note that this bug only manifest with Chrome ASAN build on MacOSX with Intel drivers.
34 // At this point ASAN build will crash inside Intel driver code.
35 testPassed("Chrome ASAN build on MacOSX with Intel driver should have crashed at this point with this bug");
38 description();
39 debug("This is a regression test for <a href='https://bugs.chromium.org/p/chromium/issues/detail?id=892282'>Chromium Issue 892282</a>");
41 var canvas = document.getElementById("canvas");
42 shouldBeNonNull("gl = wtu.create3DContext(canvas, undefined, 2)");
44 runTest();
45 var successfullyParsed = true;
46 </script>
47 <script src="../../../js/js-test-post.js"></script>
48 </body>
49 </html>