OLD | NEW |
(Empty) | |
| 1 <!-- |
| 2 |
| 3 /* |
| 4 ** Copyright (c) 2012 The Khronos Group Inc. |
| 5 ** |
| 6 ** Permission is hereby granted, free of charge, to any person obtaining a |
| 7 ** copy of this software and/or associated documentation files (the |
| 8 ** "Materials"), to deal in the Materials without restriction, including |
| 9 ** without limitation the rights to use, copy, modify, merge, publish, |
| 10 ** distribute, sublicense, and/or sell copies of the Materials, and to |
| 11 ** permit persons to whom the Materials are furnished to do so, subject to |
| 12 ** the following conditions: |
| 13 ** |
| 14 ** The above copyright notice and this permission notice shall be included |
| 15 ** in all copies or substantial portions of the Materials. |
| 16 ** |
| 17 ** THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 18 ** EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 19 ** MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
| 20 ** IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
| 21 ** CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
| 22 ** TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
| 23 ** MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS. |
| 24 */ |
| 25 |
| 26 --> |
| 27 <!DOCTYPE html> |
| 28 <html> |
| 29 <head> |
| 30 <meta charset="utf-8"> |
| 31 <title>Simulated Attrib 0 Bug Test</title> |
| 32 <script src="../resources/js-test-pre.js"></script> |
| 33 <script src="../conformance/resources/webgl-test.js"></script> |
| 34 </head> |
| 35 <body> |
| 36 <div>Simulated Attrib 0 Bug Test</div> |
| 37 <div id="description"></div> |
| 38 <div id="console"></div> |
| 39 <script> |
| 40 var context = create3DContext(); |
| 41 var program = loadStandardProgram(context); |
| 42 |
| 43 context.useProgram(program); |
| 44 debug("This line attempts to draw with 0x7FFFFFFF triangles with attrib 0 off"); |
| 45 debug("A buggy simulated attrib 0 impl will probably mult 0x7FFFFFFF * sizeof(ve
c4)"); |
| 46 shouldBe("context.drawArrays(context.TRIANGLES, 0, 0x7fffffff);", "undefined"); |
| 47 debug("This line attempts to draw with 0x7ffffff triangles."); |
| 48 debug("A buggy simulated attrib 0 impl will probably pass 0x7FFFFFF0 to glBuffer
Data and then not check that it failed"); |
| 49 shouldBe("context.drawArrays(context.TRIANGLES, 0, 0x7ffffff);", "undefined"); |
| 50 debug("") |
| 51 debug("NOTE!: You may not see any manifestation here. Check your impl for these
issues"); |
| 52 </script> |
| 53 </body> |
| 54 </html> |
| 55 |
OLD | NEW |